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

How does DB2 create an Index automatically for a column?


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ilakkia
Warnings : 1

New User


Joined: 17 May 2008
Posts: 28
Location: chennai

PostPosted: Thu Jul 10, 2008 3:28 pm
Reply with quote

How does DB2 create an Index automatically for a column?
Back to top
View user's profile Send private message
ashimer

Active Member


Joined: 13 Feb 2004
Posts: 551
Location: Bangalore

PostPosted: Thu Jul 10, 2008 3:51 pm
Reply with quote

ilakkia,


some indexes are created implicitly to provide support for a table's definition (for example, to provide support for a primary key), but normally indexes are typically created explicitly using CREATE INDEX command ...
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Sat Jul 12, 2008 6:19 am
Reply with quote

A table doesn't have to have a primary key. Therefore a table can be defined without any indexes at all. That would force most statements to execute a full table scan.
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 Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts How to load to DB2 with column level ... DB2 6
No new posts RC query -Time column CA Products 3
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts first column truncated in search result IBM Tools 13
Search our Forums:

Back to Top