码迷,mamicode.com
首页 > 数据库 > 详细

MySQL中index和key的关系

时间:2015-01-08 17:23:42      阅读:192      评论:0      收藏:0      [点我收藏+]

标签:

KEY is normally a synonym for INDEX. The key attribute PRIMARY KEY can also be specified as just KEY when given in a column definition. This was implemented for compatibility with other database systems.

简言之,在MySQL中,INDEX和KEY的概念是一样的。PRIMARY KEY要求NOT NULL,其他KEY不要求。

 

http://www.coder4.com/archives/1317

MySQL中index和key的关系

标签:

原文地址:http://www.cnblogs.com/seasonzone/p/4210930.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!