DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: WHICH IS FASTER? SINGLETON SELECT OR CURSOR?

Hybrid View

  1. #1
    Join Date
    Jun 2001
    Location
    NJ
    Posts
    118
    HI Guys,
    I needed to know - which is faster a select query or cursor
    In the Pl/sql procedure?

    Thanks.
    GD_1976,

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    I would guess that a single SELECT statement would be faster than a cursor because there would be more overhead managing the cursor.

    Setup a test and time them both. That would be the easiest way...
    Jeff Hunter

  3. #3
    Join Date
    Jun 2001
    Location
    NJ
    Posts
    118
    HI Jeff,
    How do you set up the testing ?

    Can you be more specific about that?

    GD_1976.

  4. #4
    Join Date
    Oct 2001
    Location
    Pelham, AL
    Posts
    40
    I don't think there would be much difference - all SQL statements in Oracle are implemented either explicitly or implicitly as cursors.

  5. #5
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    to test use dbms_utility.get_time, put it in your pl/sql procedure and dbms_output it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width