在Mysql的命令行工具里面给select查询加入一个\G参数。横向的表结构会转为使用纵向表结构输出,利于阅读。 (1)select * from deal; ---横行输出 (2) select * from deal \G ; ---纵向输出