Working with null dates
Posted: Thu 17 Mar 2011 23:24
I have a table with a date field which can be null, such a table now has rows with valid date values and null values too. I need to build a query in C# to get all rows that have null values in the date field but I have not been able to achieve it. It is something like this:
strQuery = "SELECT * FROM sources WHERE src_date = NULL ORDER BY src_name"
I have tried using PgSqlTimeStamp.Null without success.
What is the correct way to write this query statement?
With respect,
Jorge Maldonado
strQuery = "SELECT * FROM sources WHERE src_date = NULL ORDER BY src_name"
I have tried using PgSqlTimeStamp.Null without success.
What is the correct way to write this query statement?
With respect,
Jorge Maldonado