Download DB-Access User Manual

Transcript
Modifying a Column in a Table
Modifying the Column Index
Move the highlight to an entry in the Index field of a column and select
Modify. DB-Access displays the MODIFY INDEX screen, as shown in
Figure 5-17.
Figure 5-17
The MODIFY INDEX
screen
MODIFY INDEX
clients : Yes No
Specifies that this column will NOT have an index.
----- Page 1 of 1 ----- mydata@mydbserv ------------- Press CTRL-W for Help ---Column Name
Type
customer_num
fname
lname
company
address1
address2
city
state
zipcode
phone
Serial
Char
Char
Char
Char
Char
Char
Char
Char
Char
Length
101
15
15
20
20
20
15
2
5
18
Index Nulls
Unique No
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Dups
Yes
Yes
The MODIFY INDEX screen has the following options:
Yes
No
creates an index on the column.
does not create an index on the column.
Press RETURN or select Yes on the MODIFY INDEX screen. If you press
RETURN, the default is No, and an existing index is dropped.
If you specify Yes, the MODIFY DUPLICATES screen appears, and you can
indicate whether to allow duplicate values.
■
Press the Y key, and the word Dups appears in the Index field.
■
Press the N key, and the word Unique appears in the Index field.
DB-Access changes the entry under Index and redisplays the CREATE TABLE
screen so you can continue to modify the table schema.
This option creates a nonclustered, ascending index for the values in the
associated database column. To create a different type of index, use the
CREATE INDEX statement; to change clustering for an index, use the ALTER
INDEX statement. See the discussion of indexing in Chapter 3 of the
INFORMIX-OnLine Dynamic Server Performance Guide.
The Table Menu Option 5-25