| Procedure [message #412512] |
Thu, 09 July 2009 14:47  |
AnnaOracle
Messages: 6 Registered: July 2009
|
Junior Member |
|
|
Hello All,
taking a mentoring learning class w/o any mentors,
got stuk here:
CREATE OR REPLACE PROCEDURE GET_SALARY
( V_EMP_ID in STAFF.ID%TYPE,
V_SALARY out STAFF.SALARY%TYPE)
IS BEGIN
SELECT SALARY INTO V_SALARY
FROM STAFF
WHERE ID = V_EMP_ID;
END GET_SALARY;
error:
SQL> EXEC GET_SALARY(360,:g_salary);
BEGIN GET_SALARY(360,:g_salary); END;
*
ERROR at line 1:
ORA-01403: no data found
ORA-06512: at "SYSTEM.GET_SALARY", line 5
ORA-06512: at line 1
Also, are there any GUI tools like the development center in DB2?
Thanks a lot!
Anna.
|
|
|
|
|
|
|
|
|
|
| Re: Procedure [message #412521 is a reply to message #412518] |
Thu, 09 July 2009 15:13   |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
| AnnaOracle wrote on Thu, 09 July 2009 16:09 |
it's not a test env created to practice
|
What does this mean?
|
|
|
|
| Re: Procedure [message #412550 is a reply to message #412512] |
Thu, 09 July 2009 23:50   |
|
|
| Quote: |
taking a mentoring learning class w/o any mentors,
|
Take a look at your table and see whether emp_id 360 is present or not,
And read about how to handle errors, read Exception handling.
|
|
|
|
|
|