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



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

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

More Oracle General Interview Questions

Display the records between two range?

2 Answers  


What is hot backup and logical backup?

0 Answers  


when loggined as SYSTEM,how to display all the users of database using sql query?

2 Answers  


What is Hash Cluster ?

2 Answers  


What is Partitions in Table ?

2 Answers   Atiric Software,






Can a formula column referred to columns in higher group ?

0 Answers   Oracle,


how many columns can a plsql table have

13 Answers   NIIT,


According to oracle specification VIEW is a object. OBJECT that means anything stored in the oracle database that has the physical existence.why VIEW doesn't take memory in oracle database, but it is treated as a object ?Please explain ?

2 Answers  


How to open and close an explicit cursor in oracle?

0 Answers  


Explain the use of online redo log files in oracle.

0 Answers  


How to create a table interactively?

0 Answers  


Can group functions be used in the order by clause in oracle?

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)