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

What is the difference between 10g OEM and 11g OEM?

0 Answers   MCN Solutions,


what is partitioning? Types of partitioning. explain? what is the new kind of partitioning type introduced in 9i?

0 Answers  


what is the scripts in data base?

0 Answers  


What is the order of defining local variables and sub procedures/functions?

0 Answers  


What is using clause and give example?

0 Answers  






Differentiate between translate and replace?

0 Answers  


where we have to use ON clause and where we have to use USING clause in JOINS

2 Answers  


What is the string concatenation operator in oracle?

0 Answers  


Her departmandaki isçilerden empno' su ikinci sirada olan isçilerin empno, deptno, hiredate, sira_no bigilerini döndüren sorguyu yaziniz?

0 Answers  


Describe an oracle table?

0 Answers  


What is a proxy object?

0 Answers  


I know that i can create a table without a primary key.But is there any significance for that table???? while creating an application.

6 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)