以下是我的php代码:$sql = "SELECT author,tags,subject,tid,authorid,dateline,fid FROM threads ORDER BY dateline DESC LIMIT 10"
1 回答
牧羊人nacy
TA贡献1862条经验 获得超7个赞
如果空值是:NULL
则:
$sql = "SELECT author,tags,subject,tid,authorid,dateline,fid FROM threads WHERE tags IS NOT NULL ORDER BY dateline DESC LIMIT 10"
如果空值是:''
$sql = "SELECT author,tags,subject,tid,authorid,dateline,fid FROM threads WHERE tags !='' ORDER BY dateline DESC LIMIT 10"
- 1 回答
- 0 关注
- 98 浏览
添加回答
举报
0/150
提交
取消