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

Can you skip header records while loading? : aql loader

728


how does a local variable is defined using t-sql? : Transact sql

728


Differences between Oracle 9i and 10g (Probably in terms of SQL and PL/SQL)?

3309


how to check server status with 'mysqladmin'? : Sql dba

784


How many parts of a pl sql block are optional?

712






What is the difference between having clause and where clause?

793


how can we transpose a table using sql (changing rows to column or vice-versa) ? : Sql dba

690


what is a foreign key ? : Sql dba

786


How many types of sql are there?

719


how to create a new table by selecting rows from another table in mysql? : Sql dba

753


Explain the select statement in sql?

823


Can a select statement fire a trigger?

887


Which is better join or subquery?

791


How to write pl sql program in mysql command prompt?

711


What is a call statement? Explain with an example.

745