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

Is truncate ddl or dml?

537


Differentiate pl/sql and sql?

553


How will you distinguish a global variable with a local variable in pl/sql?

614


What are functions in sql?

500


What is rowid in sql?

496






What is a constraint? Tell me about its various levels.

630


How do I start sql profiler?

547


What is a data manipulation language?

566


What is an index in sql with example?

508


Can %notfound return null after a fetch?

579


How many triggers can be applied to a table?

587


What are all the different normalization?

548


What is dbo in sql?

527


Inline the values in PL/SQL, what does it mean.?

619


what is union, minus and interact commands? : Sql dba

648