摘要:
这两天项目用到ibatis,碰到and or的联合查询,语句像这样的 select * from table where xxx = "xxx" and (xx1="xx1" or xx2="xx2") baidu跟google半天只找到一个手动写xml语句的,内容地址如下: http://lyfe 阅读全文
posted @ 2016-11-24 21:40
林加欣
阅读(36167)
评论(4)
推荐(5)
摘要:
1 ##Example example = new ##Example(); 2 example.setOrderByClause("字段名 ASC"); //升序排列,desc为降序排列。 3 example.setDistinct(false)//去除重复,boolean型,true为选择不重复的记录。 4 Criteria criteria = ne... 阅读全文
posted @ 2016-11-24 21:38
林加欣
阅读(2807)
评论(0)
推荐(1)

浙公网安备 33010602011771号