您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

请教新建表时,这个 KEY 表示什么

2025/5/2 5:56:02发布14次查看
请问新建表时,这个 key 表示什么?
create table `users` (
`id` int(11) not null auto_increment,
`yhm` varchar(20) not null,
`mm` varchar(50) default null,
`wt` varchar(20) not null,
primary key (`id`),
key `yhm` (`yhm`)
) engine=myisam
key `yhm` (`yhm`) ------ 请问这一句是做什么用的?
------解决方案--------------------
key `yhm` (`yhm`) 是索引
------解决方案--------------------
index 索引。
primary key  (`id`), 主鍵
key `yhm` (`yhm`) 普通索引
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product