set NOEXEC ON; Select * from emp; Set NOEXEC OFF;
此验证在sql Server中有效.但它在甲骨文中没有用.
是否有任何语法可以检查查询在Oracle中是否有效.
使用
EXPLAIN PLAN
EXPLAIN PLAN FOR SELECT FROM emp;
ERROR at line 1: ORA-00936: missing expression
EXPLAIN PLAN FOR SELECT * FROM emp;
Explained