DataTable SELECT = Null

M

maflatoun

Hi,

I have a datatable that I like to do a select on where col1='something'
and col2=empty but the following doesn't return anything even though I
know col2 is empty (length of data = 0). What am I doing wrong? Any
idea?

DataRow[] rows = ds.Tables["CurrentSessions"].Select("SessionID='" +
sessionID + "' AND SupportEmail = NULL");

Also tried SupportEmail = '', SupportEmail IS NULL. It works if I
remove SupportEmail condition.

Thanks
Maz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top