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...

1:-How to write to update command in a procedure in oracle
which update two different table at a time

2:-How to write the select command in a procedure in oracle
which give multiple records

Answer Posted / guneetinder singh

update query depends upon no. of column two tables contain.

declare
salary number:=&salary;
procedure guneet(s in number) as
begin
update emp set sal = sal+s;
update gesture set sal1 = sal1+s;
end guneet;
begin
guneet(salary);
end;

--------------------------------------------------------------
declare
procedure multiple() as
begin
select * from emp;
end multiple;
begin
guneet();
end;

Is This Answer Correct ?    1 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use attributes of the implicit cursor in oracle?

998


i wrote a pl/sql procedure. it must run every sunday 4.40 How can i schedule it with the help of dbms_jobs (or another other procedure with out creating bat file,exe file)

2314


What is the difference between post-database commit and post-form commit?

1179


What is sharded cluster?

1003


What is ceil and floor in oracle?

1065


What is the implicit cursor in oracle?

1095


Hi Can any one tell me what are the API's used in requisition import.

1917


I have a database backup file in .db (ext) form how to conver it into .dmp (ext.) for oracle database

2127


How to see free space of each tablespace?

1032


List the types of joins used in writing subqueries?

988


What is Library Cache in Oracle?

1133


Which environment variables are absolutely critical in order to run the OUI?

2112


How can you use check constraints for self referential integrity?

960


Why does Oracle not permit the use of PCTUSED with indexes?

2415


How to connect the oracle server as sysdba?

1069