Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking for Null value in DB2
Message
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Title:
Checking for Null value in DB2
Miscellaneous
Thread ID:
00552608
Message ID:
00552608
Views:
65
I am using embedded SQL statements in Visual Basic 6 to query data from a DB2 database. The field I am trying to check and see if it's value is Null is Cancel_date, it is a date/time field.
I don't know how to write the Select statement so that it checks if it's value is Null. I tried:

SELECT * FROM TableName WHERE CANC_DT = NULL
SELECT * FROM TableName WHERE CANC_DT = 'NULL'
SELECT * FROM TableName WHERE CANC_DT = ""

none of these work, does anyone know how to do this?
thanks,
Ryan Uhl
Next
Reply
Map
View

Click here to load this message in the networking platform