Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 6968
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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts JES2 job size field matching Windows ... SRICOBSAS All Other Mainframe Topics 4 Tue Sep 05, 2017 5:49 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us