oracle如何用存储过程实现 查询结果的拼接

[复制链接]
查看11 | 回复2 | 2011-1-28 16:45:01 | 显示全部楼层 |阅读模式
拼接?没看明白你的意思. ----------------------------------------------------------------可以用游标解决~例如下面这样CREATE OR REPLACE procedure test(MSG out VARCHAR2)as v_namevarchar2(20);cursor c_sell is
select t.title 书籍名称 from titles t where t.author='alex' ;begin
open c_sell;
loop
fetch c_sell into v_n...
回复

使用道具 举报

千问 | 2011-1-28 16:45:01 | 显示全部楼层
select wmsys.wm_concat(t.title) 书籍名称from titles t where t.author='alex'...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行