3

什么是替代品

select table_name.* as colAlias from table_name

我假设这曾经在 5.5 MySQL 之前工作。

4

1 回答 1

6
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;
于 2012-12-03T17:58:48.840 回答