Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Updating an INDEXed field.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
yourchoice_amit

New User


Joined: 01 Sep 2005
Posts: 5
Location: Mysore

PostPosted: Fri Jun 25, 2010 9:29 pm    Post subject: Updating an INDEXed field.
Reply with quote

I have a table which doesnt have Primary keys defined for it. Where as it has some rows indexed.

My requirement is to update the rows(all the rows in the table). How will the updation impact?
1. If the updating row is indexed.
2. If the updating row is not indexed but other row is indexed.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Jun 25, 2010 9:35 pm    Post subject:
Reply with quote

Hello,

You need to more clearly explain what you are concerned with. . .

Quote:
1. If the updating row is indexed.
2. If the updating row is not indexed but other row is indexed.
I am completely confused as to what this means icon_confused.gif

Possibly you could post some sample data and what you want to happen when your process is run.

How many rows are in this table?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Jun 25, 2010 9:37 pm    Post subject:
Reply with quote

well, first of all,
either the rows are indexed or they are not.
you can not have some rows indexed and some not.

indexing occurs over column(s).

so, if you update (change) a column that is part of an index,
you not only change the column,
you are also changing the index.

you should read about indexes.
there is a recent thread in the db2 forum about indexes,
with some good links given,
which will enable you to become more knowledgeable of the subject.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts Updating the counters after eliminati... PANDU1 DFSORT/ICETOOL 12 Mon Nov 21, 2016 9:47 am
No new posts Updating Cursor row withour using FOR... chandan.inst DB2 15 Tue Nov 08, 2016 11:17 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us