Results 1 to 4 of 4

Thread: Cursor concept of the SQL

  1. #1
    Join Date
    Nov 2009
    Posts
    129

    Cursor concept of the SQL

    Hi,

    I have question regarding the Cursor concept of the SQL. I have gone through various book but didn't get proper information regarding this. What is the use of the Cursor in SQL? What is the syntax for cursor statement?

    Please help me in this, I will appreciate your help over this.

  2. #2
    Join Date
    Oct 2005
    Posts
    2,393

    Re: Cursor concept of the SQL

    Hi,

    In the SQL the Cursor concept is implemented using the "Declare cursor" statement. If you want o specify rules like authorization then you can "Select statement" along with the Cursor statement. We are able to use command like "delete" and "Update" along with the Cursor statement for the table rows which are only in the similar work unit. Refer below example of Cursor statement:

    EXEC SQL declare a1 cursor for
    select DPTNO, DPT_NAME, MRNO
    FROM DPT
    WHere MRDEPT = 'z88';

  3. #3
    Join Date
    May 2008
    Posts
    2,389

    Re: Cursor concept of the SQL

    Hi friends,

    Please refer the some details regarding Cursor statement:

    *.The Cursor command of the Sql which can be associated to a Cursor. The main function of the cursor is to identifies a SQL command from it's activation.

    *.The Cursor concept of SQL is a mechanism to navigate in between manipulation of data OR of data records sets for retrieving.

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Cursor concept of the SQL

    Hi,

    Following is the syntax to declare the Cursor in the SQL:

    DECLARE nameOFcursor Cursor

    (GLOBAL | LOCAL )

    // this is the scope of the cursor

    (OPTIMISTIC | READ_ONLY | SCROLL_LOCKS | )

    (FAST_FORWARD | STATIC | KEYSET | DYNAMIC)

    FOR updtae / select statement
    I hope this will help you to understand the Cursor concept of the SQL.

Similar Threads

  1. iOS 5 Concept and features
    By -Deven- in forum Portable Devices
    Replies: 9
    Last Post: 03-09-2011, 10:16 PM
  2. How to change Windows 7 cursor to game cursor
    By Calebh in forum Operating Systems
    Replies: 5
    Last Post: 18-01-2010, 04:54 PM
  3. Concept of UML
    By Jagadamba in forum Software Development
    Replies: 3
    Last Post: 20-11-2009, 09:53 AM
  4. Change the default cursor to a Wait cursor in ASP.NET
    By Vireshh in forum Software Development
    Replies: 2
    Last Post: 26-01-2009, 05:47 PM
  5. The concept of cooling
    By Cadallic in forum Overclocking & Computer Modification
    Replies: 4
    Last Post: 03-10-2008, 05:16 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,455,017.18486 seconds with 17 queries