时间:2021-07-01 10:21:17 帮助过:43人阅读
Oracle 10g以上的版本 Oracle select T.* from (select Rownum as A,2*Rownum B,3*Rownum C from dual connect by level999) Twhere T.A =123 AND T.C 999--借用PHP小三哥的正则表达式and not REGEXP_LIKE(TO_CHAR(A)||TO_CHAR(B)||TO_CHAR(C), '1.*?1|2.*?2|
Oracle 10g以上的版本select T.* from (select Rownum as A,2*Rownum B,3*Rownum C from dual connect by level<999) T where T.A >=123 AND T.C < 999 --借用PHP小三哥的正则表达式 and not REGEXP_LIKE(TO_CHAR(A)||TO_CHAR(B)||TO_CHAR(C), '1.*?1|2.*?2|3.*?3|4.*?4|5.*?5|6.*?6|7.*?7|8.*?8|9.*?9|0', 'i')