摘要: 1.使用count() 当需要查询数据是否存在时,一般会使用count函数,统计其个数,用法如下: select count(1) from user where a = 1 在java中判断数量是否大于0即可: int num = userDao.countUser(params); if ( n 阅读全文
posted @ 2021-11-13 18:30 钟小嘿 阅读(778) 评论(0) 推荐(0)