mysql中null 或者 空字符串判断

select * from test where 1 = 1 
<![CDATA[  and (name is null or LENGTH(trim(name)) < 1 ) ]]>

猜你喜欢

转载自zliang186.iteye.com/blog/2314295