How can I validate SQL query syntax in oracle database?
23,179
Using EXPLAIN PLAN
EXPLAIN PLAN FOR SELECT FROM emp;
ERROR at line 1: ORA-00936: missing expression
EXPLAIN PLAN FOR SELECT * FROM emp;
Explained
Author by
Srinivas Ch
Working As A senior software developer at Jaaji Technologies Pvt ltd. Having 3.7 Years of Experience in C#,WCF,ASP.Net MVC 4.5,Xamarin Android.
Updated on August 09, 2022Comments
-
Srinivas Ch almost 2 years
set NOEXEC ON; Select * from emp; Set NOEXEC OFF;
This validation is working in SQL Server. But It's not working in oracle.
Is there any syntax to check the query is valid or not in Oracle.
-
jimifiki over 6 yearsIn my worksheet PLAN is underlined as a mistake and I get an error when I run the command: SQL Error: ORA-00905: missing keyword 00905. 00000 - "missing keyword".
-
sqluser over 6 yearsSo what's the question in here? You are missing some keyword in your query.