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
Post a Comment