问题
Is there any equivalent to psql's \x to view a record with each column on a new row?
回答1:
Append \G
to the end of the statement before the semicolon:
SELECT * FROM table_name [WHERE condition] \G;
来源:https://stackoverflow.com/questions/1794992/mysql-extended-display