日期:2014-05-16  浏览次数:20919 次

HQL 与 MySQL中对于控制的处理

在MySQL中这样操作哦~

mysql中 新建字段默认值为null,那么要查询此数据的字段时应该怎么操作呢?
错误的写法:
select * from?$table where 字段=null 或? select * from?$table where length(字段)=0
正确的写法是:
select * from?$table where 字段 is null

?

在Hibernate中这样操作哦~

form ? user ? as ? c ? where ? c.name ? is ? null

?

包邮的哦~亲~