select distinct id,(select content from zb1 b where b.id=a.id and b.xh=0),(select content from zb1 b where b.id=a.id and b.xh=1),
(select content from zb1 b where b.id=a.id and b.xh=2),(select content from zb1 b where b.id=a.id and b.xh=3) from zb1 a ;
(select content from zb1 b where b.id=a.id and b.xh=2),(select content from zb1 b where b.id=a.id and b.xh=3) from zb1 a ;
解决方案 »
- 下面语句怎么写的啊??????
- 求一句SQL
- 多表关联查询(有同一张表虚拟多表的情况)的问题
- java.sql.SQLException: 数据大小超出此类型的最大值: 2253
- 关于临时表空间不太明白的地方
- 【数据库设计】-文章内容-不同的用户角色在前台查看的内容是不同的-【设计思路】-分不同的角色保存不同的内容-能行吗?
- ora-04031报错,请帮忙看看。
- 关于TIMESTEN内存数据库 不能直接修改现在有表字段的问题
- 請問如何設置table使之在dba studio 看不到但是通過sql/plus可以看到
- Oracle8i刚装完,SQL*plus不能登陆
- 各位大侠帮忙!SQL语句!
- oracle是否不认识join语句?
select id,max(decode(xh,0,content,null)),max(decode(xh,1,content,null)),max(decode(xh,2,content,null))
from temp group by id