IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Updating an INDEXed field.


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Fri Jun 25, 2010 9:35 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Join 2 files according to one key field. JCL & VSAM 3
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts S0C7 - Field getting overlayed COBOL Programming 2
No new posts Masking variable size field - min 10 ... DFSORT/ICETOOL 4
Search our Forums:

Back to Top