有这样一张表
id type name
1 音乐 1.MP3
2 音乐 2.MP3
3 诗歌 aa.mp3
4 诗歌 bb.mp3求一个视图,能将这些数据,按这样的方法输出!
type name
音乐 1.mp3|2.mp3
诗歌 aa.mp3|bb.mp3
id type name
1 音乐 1.MP3
2 音乐 2.MP3
3 诗歌 aa.mp3
4 诗歌 bb.mp3求一个视图,能将这些数据,按这样的方法输出!
type name
音乐 1.mp3|2.mp3
诗歌 aa.mp3|bb.mp3
解决方案 »
- oracle 在等 求高手
- 如何实时将oracle表中的数据查询输出到TXT文件中,请高手指点!
- 如何设定晚上23点定时读取本地d:\download\dingdan\dingdan_2009-07-09.txt?
- 大家来说说使用oracle里面怎样使用索引,提高sql执行速度?
- 关于索引表空间
- sql基础不好,求SQL,望大家指点,分不够开帖另加
- ORACLE 锁问题(在线等)?
- 小弟初學Oracle,請問Oracle中內连接怎么寫呢﹖謝謝
- 请问回滚段与重作日志有何区别和联系?
- 有没有办法对Oracle一张表中的某些记录加锁
- 请教!!!!!!!!!!!
- 工作中遇到一个sql,请教各位以下问题,点拨一下思路和解决办法,谢谢!!
from (select t.*,row_number()over(partition by type order by id)rn from tab1 t)
start with rn=1
connect by rn-1=prior rn
and type=prior type
group by type