Home » SQL & PL/SQL » SQL & PL/SQL » pl/sql
pl/sql [message #2330] Sun, 07 July 2002 22:41 Go to next message
SHARMA POLPE
Messages: 5
Registered: July 2002
Junior Member
hi anyone please

i want to create pl/sql proc for which
a table will update by giving value.,

exmp. taking empno updating the emp table
Re: pl/sql [message #2336 is a reply to message #2330] Mon, 08 July 2002 07:31 Go to previous message
K.SREENIVASAN
Messages: 110
Registered: January 2001
Location: banglore
Senior Member
SIR,

CREATE OR REPLACE PROCEDURE PROEXAMPLE(pGIVENVALUE VARCHAR2)
IS
BEGIN
UPDATE EMP SET SALARY=SALARY+100 WHERE EMPNO=pGIVENVALUE;
END PROEXAMPLE;
/

K.SREENIVASAN
Previous Topic: how to add the single quotation mark ' to the variable of varchar2 type
Next Topic: Take a row in a table and move it to another table - Need help
Goto Forum:
  


Current Time: Fri Apr 19 14:40:52 CDT 2024