oracle8数据合并 在我的lists表中字段item_no 中的值是一定的。而对应的sub_item字段则有7个不同的值!我现在要将这7个值合并起来!“U600188728/00A,U600188735/00A,U600188744/00A…… ”请问各位我该怎么办!我用的数据库是oracle8,sys_connect_by_path()此方法没用! 希望熟悉oracle8的老师傅们!帮帮忙!磕头拜谢了! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 csdn怎么还插入不来自己剪切的图片阿 还是我不会用……tablename--> listsselect item_no,sub_item from lists where itemno='S600197149/00A'结果:item_no sub_itemS600197149/00A U600188728/00A S600197149/00A U600188735/00AS600197149/00A U600188744/00A谢谢各位了 请帮帮忙 http://blog.csdn.net/you_tube/archive/2009/04/10/4059251.aspx参考下,8I,9I,10G for rec in (select * from t1 where id=:P_item_no) str:=str||rec.sub_item||','; end loop; str:=substr(str,1,length(str)-1) for rec in (select * from t1 where id=:P_item_no) loopstr:=str||rec.sub_item||','; end loop; str:=substr(str,1,length(str)-1) Oracle 用户指定查那张表 表的转置 求一个三个表连接的SQL,多谢了! **********一个有关调整的问题************ 主键和外部键问题 ora-01578错 经查询是LOBSEGMENT数据块损坏,请问如何解决?急急 oracle 和 sql server安装在同一台机器上有冲突吗?两个不同的oracle 版本安装在同一机器上环境变量有冲突吗? ORACLE6的一个库问题。 急求教!!在unix下安装oracle817,创建实例失败!!help 存储过程问题 我想在过程中实现延时1分钟该怎么做? 应聘时的考题
tablename--> listsselect item_no,sub_item from lists where itemno='S600197149/00A'
结果:item_no sub_item
S600197149/00A U600188728/00A
S600197149/00A U600188735/00A
S600197149/00A U600188744/00A谢谢各位了 请帮帮忙
参考下,8I,9I,10G
str:=str||rec.sub_item||',';
end loop;
str:=substr(str,1,length(str)-1)
str:=str||rec.sub_item||',';
end loop;
str:=substr(str,1,length(str)-1)