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
What is sql*loader and what is it used for? : aql loader
What is database sql?
How to assign sql query results to pl sql variables?
ERROR:Insert or update on table"accnt" violates foreign key constraints "acct_to_curr_symbol" DETAILS:KEY(accnt_curr_id)(-2)is not present in the table "curr_symbol" ......solve The Problem..
How do I save a stored procedure?
How to use sql statements in pl/sql?
What does select count (*) mean in sql?
how would concatenate strings in mysql? : Sql dba
define data blocks ? : Sql dba
What are system versioned tables?
What found sql?
what is auto increment? : Sql dba
Write a sql select query that only returns each name only once from a table?
what is offset-fetch filter in tsql? : Transact sql
How to create an array in pl/sql?