Mar 7, 2009

Query Analyzer

To check whether select or DML statements are correct ,here they will not execute (ie: if we check an insert statement it will not insert particular data into that table ) But DDL statement will get executed during parsing itself .

declare
c integer := dbms_sql.open_cursor;
begin
dbms_sql.parse(c, 'select * from scott.emp', dbms_sql.native);
dbms_sql.close_cursor (c);
end;

2 comments:

Manoj Vilayil said...

Hi this is nice one.I hope another weblog from you related to Java Class in Oracle DB and its advantages.

Manoj Vilayil said...

Hi Prabin please publish a BLOG for "PL/SQL code wrapping".