December 16, 2003 at 8:35 am
New to SQL, created a table and it has NULL rows, all fields are NULL and cannot figure out how to get rid of these rows?
Thanks in advance.
December 16, 2003 at 8:43 am
try:
delete from your_table
where col1 is null and col2 is null and col3 is null
Basically have a "is null" statement for every column in the table.
Gregory A. Larsen, DBA
Contributor to 'The Best of SQLServerCentral.com 2002' book. Get a copy here: http:www.sqlservercentral.com/bestof/purchase.asp
Need SQL Server Examples check out my website at http://www.geocities.com/sqlserverexamples
Gregory A. Larsen, MVP
December 16, 2003 at 8:46 am
Thank you so much!
Happy Holidays!
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply