select query using cursors

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bala venkata siva ram kum
    New Member
    • May 2010
    • 15

    select query using cursors

    hi friends,
    this is balu.here i am using oracle 10g.i need to call records from database using procedures.so i created ref cursor in package.package and package body is created successfully.bu t i don't know how to call this from my application code(in .net using c#).i need to display these values in gridview.please send me the solution. here is my code.
    Code:
    create or replace package pkg1
    as
     type t_cursor is ref cursor;
     procedure get_employee(cur_employees out t_cursor);
    end pkg1;
    Code:
    create or replace package body pkg1
    as
     procedure get_employee(cur_employees out t_cursor)
     is
     begin
      open cur_employees for select * from emp;
     end get_employee;
    end pkg1;
  • amitpatel66
    Recognized Expert Top Contributor
    • Mar 2007
    • 2358

    #2
    You have posted your question in the wrong forum. This is an oracle forum and do post your oracle queries in this forum and we would be happy to help.

    Moderator

    Comment

    Working...