View previous topic :: View next topic
|
Author |
Message |
yourchoice_amit
New User
Joined: 01 Sep 2005 Posts: 5 Location: Mysore
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
|