The FORMAT SQL
syntax is used to parse SQL
and output formated SQL
statement.
ParseSql ::=
'FORMAT' sqlStatement
Column | Description |
---|---|
formatted_result | formated SQL statement |
SQL
and output formated 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