上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 202 下一页
摘要: 前篇:https://www.cnblogs.com/heyang78/p/15750685.html & https://www.cnblogs.com/heyang78/p/15751235.html 从12c起,Oracle也推出了不依赖于rownum的分页语句,其格式如下: select * 阅读全文
posted @ 2022-01-01 04:38 逆火狂飙 阅读(468) 评论(1) 推荐(0)
摘要: 结论:方案二以不大的优势胜出,推荐使用如下SQL进行传统分页: select * from (select tta.*,rownum as rn from ( your biz sql ) tta where rownum<=【end】 ) ttb where ttb.rn>【start】 至此,伸 阅读全文
posted @ 2021-12-31 19:12 逆火狂飙 阅读(283) 评论(0) 推荐(0)
摘要: 先把结论抛出来: select * from (select tta.*,rownum as rn from ( select * from emp7 order by name ) tta where rownum<=【end】 ) ttb where ttb.rn>【start】 说明: 绿色部 阅读全文
posted @ 2021-12-31 06:38 逆火狂飙 阅读(50) 评论(0) 推荐(0)
摘要: %-10s 字符串定10位长,不够右补空格 %10s 字符串定10位长,不够左补空格 %-10d 数字定10位长, 不够右补空格 %10d 数字定10位长, 不够左补空格 总之,定长就是百分号后写几位,右补有中划线,左补没有。 END 阅读全文
posted @ 2021-12-30 21:35 逆火狂飙 阅读(704) 评论(0) 推荐(1)
摘要: 首先把最终SQL和盘托出: select * from ( select ta.*,rownum as rn from ( select * from emp7 order by name )ta )tb where 【start】<tb.rn and tb.rn<=【end】 说明: 绿色部分:O 阅读全文
posted @ 2021-12-30 21:27 逆火狂飙 阅读(90) 评论(0) 推荐(0)
摘要: 代码: package test; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * 去掉数字字符串左边多余的0 * @author hy * */ public class Test7 { public st 阅读全文
posted @ 2021-12-29 22:19 逆火狂飙 阅读(623) 评论(0) 推荐(0)
摘要: 代码: package test; import java.util.regex.Pattern; /** * 判断字符串是否整数的三种方式,孰优孰劣请自行判断 * */ public class Test6 { public static void main(String[] args) { St 阅读全文
posted @ 2021-12-29 22:05 逆火狂飙 阅读(3443) 评论(0) 推荐(0)
摘要: package test; import java.text.SimpleDateFormat; import java.time.LocalDate; import java.time.LocalTime; import java.util.Date; import java.util.Rando 阅读全文
posted @ 2021-12-29 20:59 逆火狂飙 阅读(1491) 评论(0) 推荐(0)
摘要: 【错误的发生场合】 当把null值赋给一个字段时。 【应对措施】 MyBatis官方文档指出:“如果对一个属性字段,需要传递null入内,jdbcType是必要的。” 所以,对于给属性字段可能赋空值的场合,需要显式指定可能为空的参数类型,如: update_uid=#{uid,jdbcType=NU 阅读全文
posted @ 2021-12-28 06:21 逆火狂飙 阅读(722) 评论(0) 推荐(0)
摘要: 【程序】 package test; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Test4 { public static void main(String[] args) { Strin 阅读全文
posted @ 2021-12-27 21:38 逆火狂飙 阅读(335) 评论(0) 推荐(0)
上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 202 下一页
生当作人杰 死亦为鬼雄 至今思项羽 不肯过江东