Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. cursor in stored procedure in oracle [modified]

cursor in stored procedure in oracle [modified]

Scheduled Pinned Locked Moved Database
helpquestiondatabaseoracle
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jhyn
    wrote on last edited by
    #1

    hello everyone.. i have a problem regarding in using sursor in oracle 10i. how can i pass to a cursor the output from stored procedure? like this one: CURSOR cur1 IS SAMPLESP(); --sample stored procedure. but when itry this i get this error: PLS-00103: Encountered the symbol "SAMPLESP()" when expecting one of the following: ( select please help.. thanks in advance.

    jyn

    modified on Tuesday, November 18, 2008 6:33 AM

    E W 2 Replies Last reply
    0
    • J jhyn

      hello everyone.. i have a problem regarding in using sursor in oracle 10i. how can i pass to a cursor the output from stored procedure? like this one: CURSOR cur1 IS SAMPLESP(); --sample stored procedure. but when itry this i get this error: PLS-00103: Encountered the symbol "SAMPLESP()" when expecting one of the following: ( select please help.. thanks in advance.

      jyn

      modified on Tuesday, November 18, 2008 6:33 AM

      E Offline
      E Offline
      Ennis Ray Lynch Jr
      wrote on last edited by
      #2

      cursors are passed as inputs to stored procedures in oracle and the stored procedure then assigns them.

      Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
      Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
      Most of this sig is for Google, not ego.

      1 Reply Last reply
      0
      • J jhyn

        hello everyone.. i have a problem regarding in using sursor in oracle 10i. how can i pass to a cursor the output from stored procedure? like this one: CURSOR cur1 IS SAMPLESP(); --sample stored procedure. but when itry this i get this error: PLS-00103: Encountered the symbol "SAMPLESP()" when expecting one of the following: ( select please help.. thanks in advance.

        jyn

        modified on Tuesday, November 18, 2008 6:33 AM

        W Offline
        W Offline
        Wendelius
        wrote on last edited by
        #3

        To add to the previous post, the technological term for this is REF CURSOR. For more information, see PL/SQL User's Guide and Reference Chapter 6 Performing SQL Operations from PL/SQL Using Cursor Variables (REF CURSORs) Mika

        The need to optimize rises from a bad design. My articles[^]

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups