如表(A)里的数据为
1
2
3
输出为 1,2,3
1
2
3
输出为 1,2,3
解决方案 »
- oracle 10g for solaris x86 下载
- oracle数据库安装问题,环境变量
- 求教 oracle中可以查询监听端口号的语句
- 在Oracle中有查看它所在服务器的CPU、内存、磁盘信息吗?
- 求以SQL:主要统计表中每个行业的前十名的 笔数 和 金额
- oracle report 传入参数的问题,在线等!!1
- *************求教一个ORACLE数据库分布系统方案*****************
- 刚接触存储过程!遇到问题了!!
- 关于oracle读取远程文件服务器中的csv文件的问题。。。
- 请高手们帮忙?
- 怎么改这个SQL语句
- 求助 急:如何在vb里读取oracle中的clob字段?
----------
1
2
6
8
4
56 rows selectedSQL> select substr(max(sys_connect_by_path(A1,',')),2) A1
2 from (select A1,rownum rn from A)
3 start with rn = 1
4 connect by rn = prior rn+1;A1
--------------------------------------------------------------------------------
1,2,6,8,4,5SQL>
select column
from A;begin
open c1;
loop
fetch c1 into tmp;
exit when c1%notFound;
end loop;
if c1%rowcount != 0 then
DBMS_PUT.PUT_LINE(',');
end if;
DBMS_PUT.PUT_LINE(tmp);
close cl;
end;