PL/SQL variable declare parsing failing with 4.6 version #1848
neeraj91github
started this conversation in
General
Replies: 1 comment
-
Greetings. We focus much on Standard SQL Query and DML, with some support for DDL. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I wanted to declare two variables for my query which runs on SQLServer -
And when I parse this like this -
Statements statements = CCJSqlParserUtil.parseStatements(sqlStatement);
It parses successfully. Now I need to write a similar query which will be running on Oracle DB, so I had to change the variable declaration code since variable declaration syntax is different for Oracle (PL/SQL) and SQLServer (T-SQL) -
But parsing of this fails with the error -
Was expecting one of:
How to parse the PL/SQL syntax correctly ? How do I define these variables for my OracleDB script?
Beta Was this translation helpful? Give feedback.
All reactions