What is different bet native dynamic sql and Dbms_Sql?

Answer Posted / thirupathi.l

using native dynamic sql we can directly use DML and DDL
statements.
ex:native dynamic sql
declare
a varchar2(1000);
begin
a:='create table <tname>(elements)
execute immediate a;
end;

where as in dbms_sql package also we can use dml and DDL
but here declare cursor
coding is so lenthy
thats why currently using native dynamic sql

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the use of inctype option in exp command.

596


What is ADDM Advisor in Oracle?

665


How to handle a single quote in oracle sql?

593


What is an oracle user role?

569


Define the SGA and: How you would configure SGA for a mid-sized OLTP environment? What is involved in tuning the SGA?

1860






What is the difference between post-database commit and post-form commit?

517


Describe the types of sub query?

555


What is the usage of control file in oracle?

611


Give the various rollback segment states.

579


What are the different pseudo commands? Explain in general?

541


What is object data modeling?

507


How do we get field details of a table?

549


How do I know if oracle is installed on windows?

488


What is query image?

586


What is an oracle function?

600