ITeye博客

mysql concat函数 字符串连接

gowithbutton · 2011-12-07 15:15 · java · mysql concat函数 字符串连接 · Markdown

1.concat??

select concat("http://",host,":",port) from hostInfo

?

**2.concat_ws?**concat with seperator

select concat("|", f1,f2 ) from table

?

3.group_concat ? group by 的加强版

select age, group_concat(name) from student_info group by age;

?

?

?

参见

?

http://apps.hi.baidu.com/share/detail/21460200

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。