`

SF-oracle笔记

 
阅读更多
1、oracle正则表达式:
REPLACE('GEORGE', 'GE', 'EG') = EGOREG  
REPLACE('GEORGE', 'GE', NULL) = OR 
/*把*/
regexp_replace('长袖3L','\d*[0-9a-zA-Z]*$','')


2、oracle 时间函数
/*上个月的今天,Integer,正数表示下几个月,附属表示上几个月,0表示当月*/
select add_months(sysdate, -1) from dual
/*上月之前的...*/
select * from mytest m where m.birthday < to_date(add_months(sysdate,-1))


3、oracle查找调用这个的源
/*insert into fi_pay 为要查询的内容*/
SELECT * FROM User_Source  t WHERE lower(t.text) LIKE '%insert into fi_pay%'
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics