Results 1 to 6 of 6

Thread: cursor

  1. #1
    Contributing Member
    Join Date
    Jul 2007
    Answers
    42

    cursor

    i have created cursor

    how is updated new column in cursor


  2. #2
    Expert Member
    Join Date
    Sep 2007
    Answers
    697

    Re: cursor

    Your question is not clear.

    Do you want to update a column?


  3. #3
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: cursor

    for what you have created the cursor ?


  4. #4
    Contributing Member
    Join Date
    Jul 2007
    Answers
    42

    Re: cursor

    this is interview qns.
    they said that already created cursor using procedure then after i will add new column
    how?


  5. #5
    Expert Member
    Join Date
    Sep 2007
    Answers
    697

    Re: cursor

    If you add a new column or make modifications in table structure then all the dependent objects will become invalid. You have to recompile all dependent objects.


  6. #6
    Expert Member
    Join Date
    Sep 2007
    Answers
    697

    Re: cursor

    >>i have created cursor.how is updated new column in cursor

    Still your question is not clear.

    To add a new column in your cursor definition just include that column name in cursor definition.


    CURSOR C1 is
    SELECT column1,column2,newcolumn FROM tablename;


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact