- 博客(3)
- 收藏
- 关注
原创 通过oracle job 调用存储过程 重置seq
通过oracle job 调用存储过程 重置seqcreate or replace procedure seq_reset as n number(10);tsql varchar2(100);beginexecute immediate ‘select SEQ_GLOBAL.nextval from dual’ into n;n:=-n;tsql:='alter sequence ...
2019-05-22 09:56:23 154
原创 oracle sql 行变列聚合函数
wm_concat函数行变列,出来的数据使用逗号分割select wm_concat(name) ,id from dual group by id
2019-05-17 10:41:33 593
原创 sql拆分一个字段里面逗号分割的数据
sql把一个字段里面用逗号分割的数据解析成多行数据withbase as (select level lv from dual connect by level <= 100) ,info as (select id,needsplit,(length(needsplit) - length(replace(needsplit,’,’,’’)) + 1) as cntfrom xxx...
2019-05-17 09:38:13 6204
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人