摘要:
1.获取重复的数据; 2, 只保留最小的rowid delete from apex_qualitymonitordetail a where a.barcode in (select barcode from apex_qualitymonitordetail d group by barcode 阅读全文
摘要:
int total = dgList.RowCount; int count = total / 500; int num = total % 500; if (num > 0) { count = count + 1; } for (int i = 0; i < count; i++) { Dat 阅读全文
摘要:
将查询的结果翻译成其他值,类似 case when to_char(创建时间,'mm') ='01' then '查询统计的是1月 ' when to_char(创建时间,'mm') ='02' then '查询统计的是2月 ' when to_char(创建时间,'mm') ='03' then 阅读全文
摘要:
--like select * from user where name like CONCAT('%',CONCAT(#{names,jdbcType=VARCHAR},'%' )) -in 传集合 <select id="name" resultType="xxxxx"> select * fr 阅读全文
摘要:
--with as 如果子查询很多,或者 "一个字段"需要用到子查询中的"多个字段" with TT as( select A.运单编号, K.发件地 , (select 所属财务中心 from tab_营业网点表 c where A .目的网点=c.网点编号) as 目的地公司, (select 阅读全文
摘要:
//1 创建日期格式 Date old = new Date(); Date news = new Date(); //2 设置日期格式 SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); old=sdf.parse(" 阅读全文