Oracle Stored Proc to Return a Recordset (Oracle Side)


/ Published in: SQL
Save to your folder(s)



Copy this code and paste it in your HTML
  1. CREATE OR REPLACE PROCEDURE RobCursorTestProc
  2. (
  3. my_cursor IN OUT SYS_REFCURSOR
  4. )
  5. AS
  6. BEGIN
  7. OPEN my_cursor FOR
  8. SELECT TABLE_NAME,
  9. OWNER
  10. FROM ALL_TABLES;
  11. END;
  12. SHOW ERRORS;

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.