FORMAT SQL
语法用于解析并输出格式化后的 SQL
语句
FormatSql ::=
'FORMAT' sqlStatement
列 | 说明 |
---|---|
formatted_result | 格式化后的SQL语句 |
SQL
语句FORMAT SELECT * FROM t_order;
mysql> FORMAT SELECT * FROM t_order;
+-------------------------+
| formatted_result |
+-------------------------+
| SELECT *
FROM t_order; |
+-------------------------+
1 row in set (0.00 sec)
FORMAT