PREVIEW SQL
Description
The PREVIEW SQL
syntax is used to preview SQL
execution plan.
Syntax
PreviewSql ::=
'PREVIEW' sqlStatement
Return Value Description
Column | Description |
---|---|
data_source_name | storage unit name |
actual_sql | actual excute SQL statement |
Example
- Preview
SQL
execution plan
PREVIEW SELECT * FROM t_order;
mysql> PREVIEW SELECT * FROM t_order;
+------------------+-----------------------+
| data_source_name | actual_sql |
+------------------+-----------------------+
| su_1 | SELECT * FROM t_order |
+------------------+-----------------------+
1 row in set (0.18 sec)
Reserved word
PREVIEW
Related links
当前内容版权归 ShardingSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ShardingSphere .