FORMAT SQL
Description
The FORMAT SQL
syntax is used to parse SQL
and output formated SQL
statement.
Syntax
Grammar Railroad diagram
ParseSql ::=
'FORMAT' sqlStatement
Return Value Description
Column | Description |
---|---|
formatted_result | formated SQL statement |
Example
- Parse
SQL
and output formatedSQL
statement
FORMAT SELECT * FROM t_order;
mysql> FORMAT SELECT * FROM t_order;
+-------------------------+
| formatted_result |
+-------------------------+
| SELECT *
FROM t_order; |
+-------------------------+
1 row in set (0.00 sec)
Reserved word
FORMAT
Related links
当前内容版权归 ShardingSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ShardingSphere .