会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
香水炸弹熊
博客园
首页
新随笔
联系
订阅
管理
12 2019 档案
oracle中rownum和level
摘要: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)
编辑
oracle 一串字符转换为一列
摘要: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)
编辑
公告