1.多行字符串拼接
select c.communityname from t03_community c where c.sid in(320,381,301,303);
1 西溪花园
2 同城印象
3 李永超测试
4 同城北区
select wm_concat(c.communityname) from t03_community c where c.sid in(320,381,301,303);
1 西溪花园,同城印象,李永超测试,同城北区
wm_concat可以将查询到的字段拼接起来
2.同行数据字符串拼接
用||
select substr(t.name0,4) || '00' from table t