|
|
Views
Edit history
changed:
-
General Questions about MySQL
*Mao Chen asked:*
*I got a general question regarding key and index in MySQL. Are they essentially same thing? If not, what's the difference?*
*Brad Bridge (Database Design Instructor UCSD Extension) answered:*
*KEYS have NOTHING to do with INDEXES. INDEXES are to improve the performance of SELECT (read) operations, whereas KEYS are for Data Integrity. The Primary Key enforces Entity Integrity or Entity Uniqueness by preventing duplicate Primary Key column values. The Foreign Key on the other hand enforces Referential Integrity by preventing deletion of rows in the parent table when there are associated rows in the child table. The Foriegn Key also prevents illegitimate rows from being entered in the child table when there is no associated parent row in the parent table.*
|
|
«
|
January
2009
|
»
|
| Su |
Mo |
Tu |
We |
Th |
Fr |
Sa |
|
|
|
|
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 |
-
General Meeting January 8, 2009
San Diego County Office of Education 6401 Linda Vista Rd Room 301,
2009-01-08
-
Installfest January 10, 2009
National City Adult Education Center: 517 Mile of Cars Way; National City, CA 91950,
2009-01-10
-
Open Source Conference, January 28,29 2009
Ramada Inn & Conference Center
5550 Kearny Mesa Rd.
San Diego, CA 92111,
2009-01-28
-
General Meeting, February 12, 2009
San Diego County Office of Education 6401 Linda Vista Rd Rooms 401 & 401,
2009-02-12
|