![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
开发之java
gaolei_GL
这个作者很懒,什么都没留下…
展开
-
SQL 查出数据合并
SQL 查出数据合并1、使用UNIONselect count() as num from table where (security_monitor = ‘在线’ or person_position = ‘在线’or video_monitor = ‘在线’)UNIONselect count() as num from table where (security_monit...原创 2020-03-19 16:40:11 · 620 阅读 · 0 评论 -
java hql使用count sql语句 适用于ssh框架
java hql使用count sql语句 适用于ssh框架java hql使用count sql语句 适用于ssh框架@PersistenceContextprotected EntityManager em;public int getCountBySql(String sql, Object… params) {try {Query query = em.creat...原创 2018-11-20 12:47:10 · 520 阅读 · 0 评论