what are Dynamic SQL statements?

Answer Posted / vishal kumar

Sql statement should be written in quotes like

'select table1.col1, tabel2.col2 from table1,table2 where
table1.col3=table2.col4'
and we can execute through below command "execute immidiate"
EXECUTE IMMEDIATE 'select table1.col1, tabel2.col2 from
table1,table2 where table1.col3=table2.col4'

it execute at runtime, means its not allowed as static.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different datatypes available in PL/SQL?

568


What is the use of sql trace?

481


What are records give examples?

566


What is information schema in sql?

583


What are tables and fields?

595






How to use sql*plus built-in timers?

578


Can we use ddl statements in stored procedure sql server?

520


explain normalization concept? : Sql dba

592


What is pls_integer in pl sql?

541


What is a join query?

553


Explain character-manipulation functions?

636


How do you know if a relationship is 2nf?

520


What is cursor in pl sql?

579


What is union and union all keyword in sql and what are their differences?

579


Where is pl sql used?

521