Geeks Talk

Prepare for your Next Interview




cursor

This is a discussion on cursor within the Oracle forums, part of the Databases category; i have created cursor how is updated new column in cursor...


Go Back   Geeks Talk > Databases > Oracle

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 06-06-2008
Contributing Member
 
Join Date: Jul 2007
Posts: 43
Thanks: 1
Thanked 1 Time in 1 Post
priyasp_msit is on a distinguished road
cursor

i have created cursor

how is updated new column in cursor
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-06-2008
Expert Member
 
Join Date: Sep 2007
Posts: 754
Thanks: 22
Thanked 64 Times in 63 Posts
krishnaindia2007 is on a distinguished road
Re: cursor

Your question is not clear.

Do you want to update a column?
Reply With Quote
  #3 (permalink)  
Old 06-09-2008
Moderator
 
Join Date: Jun 2007
Location: Bangalore,India
Posts: 1,426
Thanks: 8
Thanked 125 Times in 112 Posts
debasisdas will become famous soon enoughdebasisdas will become famous soon enough
Re: cursor

for what you have created the cursor ?
Reply With Quote
  #4 (permalink)  
Old 06-12-2008
Contributing Member
 
Join Date: Jul 2007
Posts: 43
Thanks: 1
Thanked 1 Time in 1 Post
priyasp_msit is on a distinguished road
Re: cursor

this is interview qns.
they said that already created cursor using procedure then after i will add new column
how?
Reply With Quote
  #5 (permalink)  
Old 06-12-2008
Expert Member
 
Join Date: Sep 2007
Posts: 754
Thanks: 22
Thanked 64 Times in 63 Posts
krishnaindia2007 is on a distinguished road
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.
Reply With Quote
  #6 (permalink)  
Old 06-12-2008
Expert Member
 
Join Date: Sep 2007
Posts: 754
Thanks: 22
Thanked 64 Times in 63 Posts
krishnaindia2007 is on a distinguished road
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;
Reply With Quote
Reply

  Geeks Talk > Databases > Oracle


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Cursor babi_geek Oracle 4 06-06-2008 11:38 PM
Cursor for loop babi_geek Oracle 2 06-02-2008 05:35 AM
Cursor for loop babi_geek Oracle 2 05-23-2008 04:09 AM
Cursor murugan_learn Oracle 1 02-12-2008 12:41 AM
cursor to array. Barbie Oracle 1 02-06-2007 08:57 AM


All times are GMT -4. The time now is 05:48 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved