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 ways on commenting in a pl/sql code?

586


What is procedure explain with example?

622


Which is better stored procedure or query?

628


How many tables can you join in sql?

606


What is difference between joins and union?

628






Explain sql data types?

727


What is the maximum size of sqlite database?

636


How can you fetch common records from two tables?

691


What port does sql server use?

610


what is table? : Sql dba

681


Can we create index on primary key?

620


What has stored procedures in sql and how we can use it?

658


What kind of join is join?

631


how to dump a table to a file with 'mysqldump'? : Sql dba

639


What is faster join or subquery?

601