摘要: mysql中sql语句的ifnull函数,在hibernate的hql中可用coalesce代替。 例: mysql的sql:select ifnull(max(sort),0) from table; hibernate的hql:select coalesce(max(sort),0) from 阅读全文
posted @ 2018-05-19 18:31 cdfive 阅读(2501) 评论(0) 推荐(0)