cursor

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • helpamit
    New Member
    • Mar 2007
    • 5

    cursor

    what is benifit of using cursor?
  • Indsack
    New Member
    • Mar 2007
    • 7

    #2
    Originally posted by helpamit
    what is benifit of using cursor?

    When SQL runs a select statement, the resulting rows comprise the result table. A cursor provides a way to access a result table.

    A DECLARE CURSOR ,OPEN and CLOSE ,A FETCH are some of cursors..

    Comment

    • rushdishams
      New Member
      • Mar 2007
      • 24

      #3
      Also, by using triggers, you can fetch a single row at a time. if you have a trigger on some field and more than one row at a time is fetched as a result of your query on that field, then obviously you are having an ERROR message. cursors are good way providing you the facility to fetch and display rows fetched more than one at a time.

      Cheers

      Comment

      Working...