一ノ瀬ルカ合集:sql语句问题access
来源:百度文库 编辑:高校问答 时间:2024/05/07 16:05:19
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试试