12 2019 档案

摘要:rownum 和 level 都是伪列rownum是oracle给查询返回行分配的编号可以用rownum=1或rownum< n,不能rownum = n或rownum>n(n>1的自然数)level常与connect by 合用,代表层级 阅读全文
posted @ 2019-12-26 16:59 纵马天涯 阅读(1079) 评论(0) 推荐(0) 编辑
摘要:select regexp_substr('0121;0312;0633;0825;0961','[^;]+',1,level) as typeCode from dual connect by level<=regexp_count('0121;0312;0633;0825;0961',';')+ 阅读全文
posted @ 2019-12-26 14:52 纵马天涯 阅读(386) 评论(0) 推荐(0) 编辑