纵向排列如何改成横向的?????????
oracle的sql语句如下:
select distinct
zla.authorized_person
from sdcd.zdeco_head_all h,sdcd.zdeco_line_all zla
where h.zdeco_head_id=zla.zdeco_head_id
and h.zdeco_head_number='2012049'
运行结果:
authorized_person
张三
李四
王五但是我想要的是下面的效果:authorized_person
张三,李四,王五或者
authorized_person
张三 李四 王五请问这条SQL语句应该怎么修改?????????
oracle的sql语句如下:
select distinct
zla.authorized_person
from sdcd.zdeco_head_all h,sdcd.zdeco_line_all zla
where h.zdeco_head_id=zla.zdeco_head_id
and h.zdeco_head_number='2012049'
运行结果:
authorized_person
张三
李四
王五但是我想要的是下面的效果:authorized_person
张三,李四,王五或者
authorized_person
张三 李四 王五请问这条SQL语句应该怎么修改?????????
解决方案 »
- 触发器错误求教
- ORA-04098 触发器无效且未通过重新验证问题
- 求一个操作?
- 求oracle 9下验证15/18位身份证号码的方法。
- 散分了,急等~~~~ 谢谢XDJM拉
- 如何将datagrid中修改的结果更新到oracle中?
- 如何列出一个数据库中的所有表,以及一个表中的所有字段
- 高分求好書!
- ■■急!!在安装ORACLE 9i Application Server 让我修改如下文件 C:\WINNT\system32\drivers\etc\hosts
- 如何在ORACLE中调整临时表空间?
- oacle 的for循环, 运行时有个错误 求解!跪求
- 怎样把Oracle 的DMP文件导入SQL Server 数据库?
但我们公司用的是9i,wmsys.wm_concat是10g才有的函数