时间:2021-07-01 10:21:17 帮助过:36人阅读
场景2:清空表中的所有内容,
TRUNCATE TABLE T_GPS_UPLOAD IMMEDIATE;
场景3:查询分页
select * from (
select a.* , rownumber() over(order by id ) as rowid from (" +
select * from T_VERSION where VERSION_NO " +
like ‘%‘ || #{versionNo} ||‘%‘ AND VERSION_TYPE like ‘%‘ || #{versionType} ||‘%‘)" +
a) tmp where tmp.rowid <= #{pageOneParam} and tmp.rowid > #{pageTwoParam}
DB2的 部分SQL语句
标签:rest tmp 查询 HERE style bsp get 语句 ber