betweenGo

Calling Oracle Stored Procedures and Functions

by Frank Kim on Jan.22, 2007, under Oracle

Calling an Oracle function is quite simple. For example

SELECT package.register(1, "Frank", "Kim") FROM dual;

However calling Oracle stored procedures is a bit more tricky, especially if the Oracle stored procedure has output parameters. Here is an example of how to call an Oracle stored procedure that has three input parameters and two output parameters.


DECLARE p_credit_status_out INTEGER;
p_school_status_out INTEGER;

BEGIN
package.get_status(1, "Frank", "Kim", p_credit_status_out, p_school_status_out);
END;
/


  • Share/Bookmark

Related posts:

  1. Catching Oracle exceptions
  2. Retrieving the Source from the Database
  3. How to Import and Create Users in Oracle
  4. Ruby on Rails and Oracle
  5. Free Conference Calling

:

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!