今天打算将父子结构用树形图显示出来,涉及到查询parentID字段值为null的查询,在网上搜下下原来语法是这样的
select * from 表名 where parentID is null
select * from 表名 where len(字段)=0
和
select * from 表名 where 字段=null
都没有结果
select * from 表名 where len(字段)=0
和
select * from 表名 where 字段=null
都没有结果
转载于:https://blog.51cto.com/visionsky/197322