谁能解释下 DBMS_SQL 的参数,比如说 这个 dbms_sql.parse(V_cur,SQL_string,DBMS_SQL.NATIVE);三个参数分别代表什么意思!
找到了,不过缺一个英语大神:
procedure parse(c in integer, statement in varchar2,
language_flag in integer);
-- Parse the given statement in the given cursor. NOTE THAT PARSING AND
-- EXECUTING DDL STATEMENTS CAN CAUSE HANGS!
-- Currently, the deferred parsing feature of the Oracle Call Interface
-- is not used. As a result, statements are parsed immediately. In addition,
-- DDL statements are executed immediately when parsed. However,
-- the behavior may
-- change in the future so that the actual parsing (and execution of DDL
-- statement) do not occur until the cursor is executed with "execute".
-- DO NOT RELY ON THE CURRENT TIMING OF THE ACTUAL PARSING!
-- Input parameters:
-- c
-- Cursor id number of the cursor in where to parse the statement.
-- statement
-- Statement to parse.
-- language_flag
-- Specifies behavior for statement. Valid values are v6, v7 and NATIVE.
-- v6 and v7 specifies behavior according to Version 6 and ORACLE7,
-- respectively. NATIVE specifies behavior according to the version
-- of the database the program is connected to.