|
-
Nov 15th, 2007, 12:27 AM
#1
Thread Starter
Addicted Member
[RESOLVED] a simple query problem regarding NULL value
Hi All,
i started some practice on SQL server 2000. i have a table called "student". its fields are sno,sname .unfortunately this table is containing NULL values. now i would like to delete the rows whose sno=NULL. so i wrote the query like this.... DELETE STUDENT WHERE SNO= NULL
but this statement is not helpful to delete the rows. could you suggest me a way to solve it?
Thanks & Regards,
raghunadhs
-
Nov 15th, 2007, 02:17 AM
#2
Re: a simple query problem regarding NULL value
In TSQL, to check if a value equals Null you need to use
Where SNO Is Null
-
Nov 18th, 2007, 07:13 AM
#3
Thread Starter
Addicted Member
Re: a simple query problem regarding NULL value
Thanks brucevde,
it is working...
regards,
raghunadhs
 Originally Posted by brucevde
In TSQL, to check if a value equals Null you need to use
Where SNO Is Null
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|