oracle 行转列 字段里是1,2,3,4,5,6..... 转成竖着的
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励20(财富值+成长值)
展开全部
SELECT REGEXP_SUBSTR ('1,2,3,4,5,6,7,8,9,10,11', '[^,]+', 1,ROWNUM)
from dual
CONNECT BY ROWNUM <=
LENGTH ('1,2,3,4,5,6,7,8,9,10,11') - LENGTH (REPLACE ('1,2,3,4,5,6,7,8,9,10,11', ',','')) +1
from dual
CONNECT BY ROWNUM <=
LENGTH ('1,2,3,4,5,6,7,8,9,10,11') - LENGTH (REPLACE ('1,2,3,4,5,6,7,8,9,10,11', ',','')) +1
追问
不仅仅是这一行,还有好多,是不是得用循环啊
追答
不仅仅是一行,是啥意思?给个样例数据
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询