Chinaunix

标题: mysql将函数结果和字符串拼接在一起该如何写? [打印本页]

作者: fu7100    时间: 2018-08-31 17:05
标题: mysql将函数结果和字符串拼接在一起该如何写?
mysql> select concat('uuid:',select replace(uuid(),'-',''));
报错如下
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'select replace(uuid(),'-',''))' at line 1

作者: lxzkenney    时间: 2018-09-03 15:09
提示: 作者被禁止或删除 内容自动屏蔽




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2