mysql> select concat_ws(',','x','y','z');
+----------------------------+
| concat_ws(',','x','y','z')...mysql> select concat(',','x','y','z');
+-------------------------+
| concat(',','x','y','z') |
+-----...如果我们想把下面的查询列表拼接成逗号(,) 分隔的字符串,怎么搞呢?...6 |
| 7 |
| 8 |
| 9 |
| 10 |
+----+
10 rows in set (0.00 sec)
答案:使用GROUP_CONCAT
mysql> select group_concat...1235 (42000): This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
这也是mysql的子查询语法用起来不是那么