Oracle stored procedure - printing varchar2 output variable?

So you have a procedure like this: CREATE OR REPLACE PROCEDURE bark ( woof IN OUT VARCHAR2 ) IS BEGIN woof := 'Woof! '; END bark Then you run: SQL> var myOutput VARCHAR2(10) SQL> exec bark(:myOutput); PL/SQL procedure successfully completed. SQL> print myOutput MYOUTPUT -------------------------------- Woof!

Is this similiar to what you are trying to do?

So you have a procedure like this: CREATE OR REPLACE PROCEDURE bark ( woof IN OUT VARCHAR2 ) IS BEGIN woof := 'Woof! '; END bark; Then you run: SQL> var myOutput VARCHAR2(10) SQL> exec bark(:myOutput); PL/SQL procedure successfully completed. SQL> print myOutput MYOUTPUT -------------------------------- Woof!

Is this similiar to what you are trying to do?

That gives me two errors. First an error about myoutput my being declared when executing the proc, and then the same error was getting above. – kralco626 Sep 8 at 18:21 sorry I made some assumptions when I was writing an answer.

I'll edit the original post. – roartechs Sep 8 at 19:27.

If so, I think the problem is you're not specifying the size of your myOutput variable. You need to do this (adjusting the length as appropriate to your needs): SQL> var myOutput varchar2(40) It's in the documentation.

If so, I think the problem is you're not specifying the size of your myOutput variable. It's in the documentation.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions