如何进行字符串连接?

timelyraining 2003-01-21 11:34:46
如何实现类似sql server中的
update table1
set fullname=firstname+lastname?
请问sqlserver中用‘+’号即可连接字符串,mysql中如何实现?
...全文
70 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
TIYILON 2003-01-23
  • 打赏
  • 举报
回复
select concat('a','b') from test;
phpteam 2003-01-21
  • 打赏
  • 举报
回复
update table1
set fullname=CONCAT(firstname+lastname)

56,679

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧