mysql查询不等于null的方法:
表结构:
表数据:
查询teacher_name字段不能等于空并且也不能等于空字符:
SELECT * FROM sys_teacher WHERE teacher_name IS NOT NULL AND teacher_name <>''
查询结果:
推荐: