Вопрос

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