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 an alias command?

1000


What is difference between my sql and sql?

995


Can I join the same table twice?

991


Is it possible to include an insert statement on the same table to which the trigger is assigned?

955


What is sql integrity?

1053


How do I run a sql query in pgadmin 4?

904


What are inbuilt functions in sql?

984


Explain the difference between 'between' & 'and' operators in sql

944


What are the dml statements?

1094


what is the difference between rownum pseudo column and row_number() function? : Sql dba

1018


Do triggers have restrictions on the usage of large datatypes, such as long and long raw?

1111


Is the primary key an index?

981


What do you understand by pl/sql packages?

1017


Explain what is a field in a database and record in a database?

1012


What are the types of optimization?

886