Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Testing a simple Oracle PL SQL function using toad sql client?

 
Vinod Vijay
Ranch Hand
Posts: 158
Java Tomcat Server Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I'm new to Oracle PL SQL.
there is a function which I need to test. I just need to check the result by printing its output on console by passing few parameters. I'm using Toad here as oracle sql client.

Function which needs to be tested is as follows:-



I seriously don't understand this IN and OUT Parameters.
I think IN parameters are those which I will pass in this function and OUT parameters is the return value from this function, please tell me am I right at this moment?

Right I'm trying to do the testing like by creating a PL SQL procedure and calling this fucntion in that with parameters passing in IN parameters and assuming that I will get some results in OUT parameters and finally I will print those OUT parameters on toad console like:-



Why I'm getting the error? Am I doing the testing in right way? If no, then how?
 
Jan Cumps
Bartender
Posts: 2608
14
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch, VinodVijay !
Do you use the correct syntax for creating a function?

I don't see a return clause in your code.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic