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

Need clarification on the index in DB2


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
l.nethaji

New User


Joined: 16 Mar 2008
Posts: 90
Location: tamil nadu

PostPosted: Thu Aug 19, 2010 1:18 pm
Reply with quote

Hi,

I have some clarification on the index in DB2.

If i have a table t1 which has 3 column empl id ,salary and location.


If i create a unique index on the emp id .

I will have a ordered set of emp id values which is stored in the index tablespace .

If i try to search some emp id say 25 in the t1 table .

What type of search the db2 system follows in order to find the records .

Is the search is based on the index we declare on the column in the table.

Please let me know if have any links which give more information on this .

regards,
L.nethaji
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Thu Aug 19, 2010 1:32 pm
Reply with quote

publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=/com.ibm.db2.udb.admin.doc/doc/c0005300.htm
is for LUW but the idea is the same.
Back to top
View user's profile Send private message
l.nethaji

New User


Joined: 16 Mar 2008
Posts: 90
Location: tamil nadu

PostPosted: Fri Aug 20, 2010 11:10 am
Reply with quote

Hi,

I just read the link . Its nice but do you have some practical examples

of searching ,inserting and deleting .

I tried in the search engine every thing i got is so theoretical.

If you have any, could you please share with me .

Thanks ,
L.nethaji.
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 Cobol file using index COBOL Programming 2
No new posts DL/I status code AK for GU call using... IMS DB/DC 1
No new posts Add column to existing records using ... JCL & VSAM 2
No new posts choice of clustering index DB2 3
No new posts Secondary index error while loading d... IMS DB/DC 2
Search our Forums:

Back to Top