Thread
:
Best way to set up this Mysql? (primary key?)
View Single Post
03-10-2004, 11:27 PM
#
8
(
permalink
)
Rawb
Crazy
Location: Salt Town, UT
Here is the MySQL guide for it
http://www.mysql.com/doc/en/ALTER_TABLE.html
Speficily(sp):
To add an index on column d, and make column a the primary key:
mysql> ALTER TABLE t2 ADD INDEX (d), ADD PRIMARY KEY (a);
Rawb
View Public Profile
Visit Rawb's homepage!
Find More Posts by Rawb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62