Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What does sql stand for?

943


How many tables can you join in sql?

899


How can you save or place your msg in a table?

953


How to revise and re-run the last sql command?

1099


how to calculate the difference between two dates? : Sql dba

993


Explain two easy sql optimizations.

959


Differentiate between % rowtype and type record.

1195


how to drop an existing table in mysql? : Sql dba

982


How much does sql certification cost?

1015


what is 'trigger' in sql? : Sql dba

1011


What is the syntax to add a record to a table?

1021


how many sql dml commands are supported by 'mysql'? : Sql dba

1056


Can we use having without group by in sql?

927


How do I create a sql database?

947


Explain the savepoint statement.

1038