六、mysql连字符
时间:2020-04-28 19:26:34
收藏:0
阅读:48
MySQL 中并不支持||作为连字符,需要使用 concat 函数。在参数数量上与 oracle 的 concat 函数有区别。
示例
查询雇员表中的所有数据,将所有数据连接到一起,每列值中通过#分割。
select concat(employees_id,‘#‘,last_name,‘#‘,email,"#",salary,"#",commission_pct) from employees;
原文:https://www.cnblogs.com/qiaoxin11/p/12796312.html
评论(0)