首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

wm_concat拼凑字符

2012-07-02 
wm_concat拼接字符select t.name , wm_concat(t.value) from TEST t group by t.name-- Create tablecreat

wm_concat拼接字符
select t.name , wm_concat(t.value) from TEST t group by t.name

-- Create table
create table TEST
(
  id    VARCHAR2(10),
  name  VARCHAR2(10),
  value VARCHAR2(30)
)
tablespace USERS
  pctfree 10
  initrans 1
  maxtrans 255;


insert into test (ID, NAME, VALUE)
values ('1', 'lion', 'aaa');

insert into test (ID, NAME, VALUE)
values ('2', 'lion', 'bbb');

insert into test (ID, NAME, VALUE)
values ('3', 'lion', 'ccc');

insert into test (ID, NAME, VALUE)
values ('4', 'tom', null);

热点排行