摘要: 所有版本的oracle都可以使用select wm_concat(name) as name from user;但如果是oracle11g,使用select listagg(name, ',') within group( order by name) as name from user;效率更高 阅读全文
posted @ 2019-07-18 16:19 黑魔法os 阅读(26411) 评论(0) 推荐(3) 编辑
摘要: 比如一张表: artile (id,type,content); type:1表示文艺类,2表示小说类,3表示传记,4表示传说,等等5,6,7,8 表数据: id type content 1 3,1 dfasdfasdf 2 1,3,6,8 ... 阅读全文
posted @ 2019-07-18 16:11 黑魔法os 阅读(6202) 评论(0) 推荐(1) 编辑