What is dynamic SQl and how you will create and execute
dynamic sql?

Answer Posted / ravi singh

Dynamic SQL enables you to executes your SQL statement at run time on the basis of different conditions. They can be executed with the help of creating SQLs at run time. you can store your where clause or sql statements in variables and on the basis of requirements you can execute them.
Dynamic SQL comprises reference cursors.
for ex: open cursor for select a,b,c from table_name;

execute immediate 'select a,b from table_name'

you can store the result set into variables too.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are subqueries better than joins?

525


Whis is not false in primary key?

973


How does sql developer connect to oracle database?

515


what is oltp (online transaction processing)? : Sql dba

526


What company owns postgresql?

555






Is left join inner or outer?

580


What is difference between hql and native sql?

571


What is left join in sql?

573


How do I remove duplicates in two columns?

506


What is the usage of distinct keyword?

625


How do I find sql profiler?

508


What is sql partition function?

610


What is auto increment?

577


Explain the the update statement in sql?

564


What are the advantages of pl sql over sql?

539