What's the alternate to

select table_name.* as colAlias from table_name

I assume this used to work pre 5.5 MySQL.

有帮助吗?

解决方案

SELECT CONCAT(col1,', ',col2,', ',col3) AS cols
    FROM table_name ORDER BY cols;

or also

SELECT CONCAT(col1,' ',col2,' ',col3) AS cols
    FROM table_name ORDER BY cols;
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top