c# - selecting data where column='null' -


i want query data , column (continent) either has value of 'africa' or null.

i want use column name in query countries name not africa no data.

this have tried returns no data.

sqldataadapter dba = new sqldataadapter(@"select * [tblcountries]                       [continent] = '' order [common name]", connection);                     //where [continent]<>'africa' order [common name]", connection);                    //where [continent] null order [common name]", connection); dba.fill(ds);  drpnonafricancountries.datasource = ds; 

what correct way of doing this?

try this

sqldataadapter dba = new sqldataadapter(@"select * [tblcountries]                                       [continent] null order [common name]", connection);             dba.fill(ds);             drpnonafricancountries.datasource = ds; 

Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -