首页 > 数据库技术 > 详细

MySQL 字符串拼接且换行

时间:2021-05-25 17:05:07      阅读:25      评论:0      收藏:0      [点我收藏+]
INSERT INTO mytable (myfield) VALUES (CONCAT_WS(CHAR(10 using utf8), ‘hi this is some text‘, ‘and this is a linefeed.‘, ‘and another‘));

这里CHAR(10)相当于换行符

www.it1352.com/1660375.html

MySQL 字符串拼接且换行

原文:https://www.cnblogs.com/lenle29/p/14808658.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!