The FORMAT SQL
syntax is used to parse SQL
and output formatted SQL
statement.
FormatSql ::=
'FORMAT' sqlStatement
Column | Description |
---|---|
formatted_result | formatted SQL statement |
SQL
and output formatted SQL
statementFORMAT SELECT * FROM t_order;
mysql> FORMAT SELECT * FROM t_order;
+-------------------------+
| formatted_result |
+-------------------------+
| SELECT *
FROM t_order; |
+-------------------------+
1 row in set (0.00 sec)
FORMAT