mysql的<=>是什么
解决方法:
查询tag_id为空的记录
SELECT t.* from tb_user_voice t where t.tag_id <=> null
等价与
SELECT t.* from tb_user_voice t where t.tag_id is null
可见<=>就是比较符,与=号不同的是:http://www.yayihouse.com/yayishuwu/chapter/2043
mysql的<=>是什么
解决方法:
查询tag_id为空的记录
SELECT t.* from tb_user_voice t where t.tag_id <=> null
等价与
SELECT t.* from tb_user_voice t where t.tag_id is null
可见<=>就是比较符,与=号不同的是:http://www.yayihouse.com/yayishuwu/chapter/2043