MySQL Forums
Forum List  »  InnoDB

Re: Return Multi rows by cursor
Posted by: Abdullah Alharbi
Date: January 26, 2009 01:27PM

I need to passed CURSORS as out parameters same this in oracle
--------------------------
CREATE OR REPLACE Procedure AFAQ.SE_ACC_NAME
( rec out MYPKG.CursorType)
AS
BEGIN
open rec for 'select "acc_id","acc_name" from "ACCOUNTS" where "acc_parent" = 14';
END SE_ACC_NAME;
----
CREATE OR REPLACE PACKAGE AFAQ.MYPKG IS
TYPE CursorType IS REF CURSOR;
END;
---------------------------

Thank You



Edited 1 time(s). Last edit at 01/26/2009 01:52PM by Abdullah Alharbi.

Options: ReplyQuote


Subject
Views
Written By
Posted
5310
January 26, 2009 10:30AM
2869
January 26, 2009 11:59AM
Re: Return Multi rows by cursor
2745
January 26, 2009 01:27PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.