金属晶粒度评级:sql语句问题access

来源:百度文库 编辑:高考问答 时间:2024/04/30 07:56:27
strSql="select top 10 * from t_news_purpose where newsort=5 and newsimg=非空
非空应该如何表示哦?我试过了 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试试