Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

explicitly return a value from a called procedure

Status
Not open for further replies.

JackTheDog

Programmer
Feb 12, 2001
3
CA
I would like to explicitly return a value from a called procedure without using the OUTPUT parameter. I can't seem to get this to work and get an error regarding converting to int. It's a string I want to pass & I've declared all of the pertinant variables as varchar.

Do I have to use this OUTPUT parameter?? I don't think Oracle recognizes this and as we may be migrating in the near future I want to make sure we've got as little recoding to do as possible.
Thanks
Sue
 
Yes,
You can use a return parameter from a stored procedure but you cannot return a string. You can only return an integer.

If I remember correctly, Oracle does support OUTPUT parameters to functions.

Hope this helps,

Chris Dukes
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top