重庆思庄Oracle、、PostgreSQL、Redhat认证学习论坛

标题: 如何查看达梦SQL语句的执行计划 [打印本页]

作者: 郑全    时间: 3 天前
标题: 如何查看达梦SQL语句的执行计划
SQL> explain select * from dept;

1   #NSET2: [1, 3, 68]
2     #PRJT2: [1, 3, 68]; exp_num(4), is_atom(FALSE)
3       #CSCN2: [1, 3, 68]; INDEX33555649(DEPT); btr_scan(1)

已用时间: 0.536(毫秒). 执行号:0.

或者

SQL> set autotrace on;
SQL> select * from dept;

0    | CSCN2 | DEPT | INDEX33555649 | 1

已用时间: 0.509(毫秒). 执行号:0.







欢迎光临 重庆思庄Oracle、、PostgreSQL、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2