随笔分类 -  ora

摘要:函数介绍: 截取的函数: substr(?,?); substr(?,?,?); 获取目标字符出现的位置: instr(? , ? , ? ); instr( ? , ? , ? , ? ) 例: 字符串 "AAA-BBB" 截取"AAA" "BBB" select substr('AAA-BBB' 阅读全文
posted @ 2021-11-22 17:59 lemmon_water 阅读(938) 评论(0) 推荐(1)
摘要:regexp_replace(t.name, '[\\(|(].+[\\)|)]', '') 阅读全文
posted @ 2021-11-22 17:20 lemmon_water 阅读(35) 评论(0) 推荐(0)
摘要:要实现这个功能需要用到trunc这个函数对时间的操作 select trunc(sysdate) from dual --2021-11-03 今天的日期为2021-11-03 select trunc(sysdate, 'mm') from dual --2021-11-01 返回当月第一天. s 阅读全文
posted @ 2021-11-03 11:41 lemmon_water 阅读(2741) 评论(0) 推荐(0)