SQL developer(procedure) [message #383060] |
Tue, 27 January 2009 02:37 |
modhiyakomal
Messages: 49 Registered: November 2008 Location: US
|
Member |
|
|
Hi
My code is:
create or replace
PROCEDURE PROCEDURE1
( emp_no IN NUMBER
) AS
a1 NUMBER;
b1 VARCHAR2(20);
c1 NUMBER;
BEGIN
select empno, ename, sal INTO a1, b1, c1
FROM emp
WHERE empno= emp_no;
END PROCEDURE1;
when i run this procedure in SQL Developer it gives me error:
Connecting to the database scott.
Process exited.
Disconnecting from the database scott.
how can i get output data of this procedure in SQL Developer?
Thanks.
|
|
|
|
|
Re: SQL developer(procedure) [message #383072 is a reply to message #383060] |
Tue, 27 January 2009 03:19 |
flyboy
Messages: 1903 Registered: November 2006
|
Senior Member |
|
|
modhiyakomal wrote on Tue, 27 January 2009 09:37 | when i run this procedure in SQL Developer it gives me error:
Connecting to the database scott.
Process exited.
Disconnecting from the database scott.
|
You posted the of the procedure definition code. Are you aware, that it does not execute the procedure, it only creates it? If so, I wonder, what "run" means and why you did not post its code. By the way, those messages do not seem to me like "error". Maybe you should specify exactly where you got them.
Quote: | how can i get output data of this procedure in SQL Developer?
|
As this procedure does not return anything, there is no way to get any data from it except of rewriting it. Maybe it should use OUT parameter(s). Maybe change it to function. Without knowing, where you want to use it, there is nothing more to say.
|
|
|
|
|
|
|
|
|
|
|
|
|