独山子美食街:sql语句问题access
来源:百度文库 编辑:中科新闻网 时间:2024/10/02 20:30:09
strSql="select top 10 * from t_news_purpose where newsort=5 and newsimg=非空
非空应该如何表示哦?我试过了 not null ,is not null,好象都不是,各位大大帮帮忙哈数据库是access
非空应该如何表示哦?我试过了 not null ,is not null,好象都不是,各位大大帮帮忙哈数据库是access
strSql="select top 10 * from t_news_purpose where newsort=5 and newsimg is not null"
或者
strSql="select top 10 * from t_news_purpose where newsort=5 and newsimg <> ''"
写newsimg!=NULL试试