55

mysql中的键和索引-LINUX系统运维-51CTO博客

 6 years ago
source link: http://blog.51cto.com/13466287/2072507
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
一、主键索引关系1.主键:主键的唯一作用就是唯一标识表中的某一行数据。分为单一主键和联合主键:单一主键:只用一列就能唯一标识一行。联合主键:当使用一列已经不能唯一标示一行的时候,就要采用多列唯一标识一行,就是联合主键。联合主健多个字段不能同时相同2.索引:索引的作用就是提高数据的检索速度,分为单一索引和联合索引:单一索引:只是用某一列数据作为索引,默认是index索引,这一列可以包含重复数据;如果

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK