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 / raksha

Dynamic SQL enables you to write programs that reference SQL statements whose full text is not known until runtime.

Below is the way to execute dynamic sql

EXECUTE IMMEDIATE 'SELECT d.id, e.name FROM dept_new d, TABLE(d.emps) e -- not allowed in static SQL
-- in PL/SQL
WHERE e.id = 1'

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sql injection vulnerability?

939


Is pl sql useful?

983


what tools available for managing mysql server? : Sql dba

1075


How do you declare a constant?

958


What is sql select statement?

1028


What are the advantages of sql? Explain

1094


What are the uses of sysdate and user keywords?

1095


what are the differences among rownum, rank and dense_rank? : Sql dba

1036


What is coalesce sql?

993


What is the difference between count 1 and count (*) in a sql query?

981


How do you modify a table in sql?

1116


What is duration in sql profiler trace?

1072


how to convert character strings to numeric values? : Sql dba

1100


How do I upgrade sql?

998


What are conditional predicates?

1053