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

types of indexes and the rationale behind choosing a particular index for a situation.

2559


How to enter a new row into a table interactively?

1048


Can we create database in oracle using command line ?

1131


Can a parameter be passed to a cursor?

1179


What is the simplest tool to run commands on oracle servers?

1052


Where do you use decode and case statements?

1043


What is hot backup and logical backup?

1111


What privilege is needed for a user to create tables in oracle?

990


Define the SGA and: How you would configure SGA for a mid-sized OLTP environment? What is involved in tuning the SGA?

2309


can u send the sql dumps to sivakumarr1987@gmail.com plz help me

3096


How to define a specific record type?

1136


Please explain compound trigger in oracle?

1108


How to view the tablespaces in the current database?

1024


Explain an integrity constrains?

1190


What happens to the data files if a tablespace is dropped?

1107