Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I select where the field value is NULL
Message
From
26/05/2011 22:38:16
 
 
To
26/05/2011 21:42:19
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Application:
Desktop
Miscellaneous
Thread ID:
01511974
Message ID:
01511976
Views:
37
>HI, all
> I use sqlserver 2005, the field value is NULL, how can i use sql statement where to select it?
>i already use isnull but i can't select it ,Thank you ...
>
>
>select * from funclib where formname=isnull(formname,'NULL')
>
>
Alex,
do you want to select all records where

formname = @somevariable or NULL

?
Then I would try this.


SELECT * from funclib where formname IS NULL OR formname=@somevariable

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform