What is different bet native dynamic sql and Dbms_Sql?

Answers were Sorted based on User's Feedback



What is different bet native dynamic sql and Dbms_Sql?..

Answer / gapbridge

In Oracle Database 11g, NDS supports statements larger than 32 KB by accepting a CLOB argument.

Is This Answer Correct ?    3 Yes 0 No

What is different bet native dynamic sql and Dbms_Sql?..

Answer / amrit paul-genpact

Normally we would write codes using Native Dynamic SQL(NDS).
This is because NDS heps writing clear, understandable code
where trouble shooting is apparently very easy.
However there might be situations when the input to a
EXECUTE IMMEDIATE code might use a SQL Text which is
greater than 32KB, thus over-ruling the max specified size
of PL/SQL VARCHAR2 limits. This is a clear situation where
we could use the DBMS_SQL package.

Is This Answer Correct ?    2 Yes 3 No

What is different bet native dynamic sql and Dbms_Sql?..

Answer / s.gousalya

Native Dynamic sql:
Directly we can include sql code into our query or
procedure using EXECUTE IMMEDIATE

DBMS_SQL it offers an API that execute SQL statement
dynamically.

Is This Answer Correct ?    0 Yes 4 No

What is different bet native dynamic sql and Dbms_Sql?..

Answer / 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

More Oracle General Interview Questions

difference between procedures and function?

7 Answers   IBM,


query optmization techniques and quwry analyser+projects+ppts

0 Answers  


What are the components of logical database structure in oracle database?

0 Answers  


What is a Data Dictionary ?

5 Answers  


I have query like this. select dept_id, max_mark from stude_dept where min_mark= (select min(mini_mark) from stud_dept); How can i optimize this query. Can anyone help me with it

2 Answers  






How to enter a new row into a table interactively?

0 Answers  


write a query to count number of alphabets in given string for example "APPLE" write a query to generate sequence from 50 to 100 write a query to display in single string "ABCD,EFGH,IJKL,PQRS"

7 Answers   British Telecom BT,


how to create a new database in oracle?

6 Answers   TCS,


I have table-A(1,2,3)& table-B(3,4,5).what is the different b/w below questions? A union all B? B union all A?

2 Answers   Zensar,


how to we delete a row using varray

3 Answers   CTC,


Select all the employees who were hired in last 2 years and who works in dept where max managers are working.

0 Answers   ESS,


15. Display the item_cost and then truncate it to the nearest hundred, ten, unit, tenth and hundredth.

0 Answers   Wipro,


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)