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

How can you maintain the integrity of your database on instances where deleting an element in a table result in the deletion of the element(s) within another table?

1134


what is a database lock ? : Sql dba

1170


What is sql basics?

1042


What is online transaction processing (oltp)?

1017


What programs use sql?

1009


Explain commit, rollback and savepoint.

1001


What is a native sql query?

1070


What is procedure in pl sql?

1046


How do you delete data from a table?

1039


How many tables can a sql database have?

977


Can we want to pass a parameter payroll_id to this external pl/sql function, how do we do it?

1060


what is cursor. write example of it. What are the attributes of cursor.

1391


What is cursor in pl sql?

1117


What are operators available in sql?

1046


Why is partition used in sql?

1123