mysql – 选择具有单个别名的多个列
作者:互联网
什么是替代品
select table_name.* as colAlias from table_name
我认为这曾经用于5.5之前的MySQL.
解决方法:
SELECT CONCAT(col1,', ',col2,', ',col3) AS cols
FROM table_name ORDER BY cols;
或者也
SELECT CONCAT(col1,' ',col2,' ',col3) AS cols
FROM table_name ORDER BY cols;
标签:mysql,mysql-5-5 来源: https://codeday.me/bug/20190826/1725138.html