PARSE v14
The PARSE
procedure parses a SQL command or SPL block. If the SQL command is a DDL command, it executes immediately and doesn't require that you run the EXECUTE
function.
Parameters
c
Cursor ID of an open cursor.
statement
SQL command or SPL block to parse. A SQL command must not end with the semi-colon terminator. However an SPL block does require the semi-colon terminator.
language_flag
Language flag provided for compatibility with Oracle syntax. Use DBMS_SQL.V6
, DBMS_SQL.V7
or DBMS_SQL.native
. This flag is ignored, and all syntax is assumed to be in EDB EDB Postgres Advanced Server form.
Examples
This anonymous block creates a table named, job
. DDL statements are executed immediately by the PARSE
procedure and don't require a separate EXECUTE
step.
The following inserts two rows into the job
table.
This anonymous block uses the DBMS_SQL
package to execute a block containing two INSERT
statements. The end of the block contains a terminating semi-colon. In the prior example, each INSERT
statement doesn't have a terminating semi-colon.
- On this page
- Parameters
- Examples