题解 | #对first_name创建唯一索引uniq_idx_firstname#

对first_name创建唯一索引uniq_idx_firstname

http://www.nowcoder.com/practice/e1824daa0c49404aa602cf0cb34bdd75

mysql alter语句创建索引
1、alter table actor add unique uniq_idx_firstname(first_name);//唯一索引
2、alter table actor add index idx_lastname(last_name);//普通索引
3、create index index_name on tablename(col_name);//创建索引
4、alter table tablename add fulltext index_name(col_name);//创建全文索引

全部评论

相关推荐

不愿透露姓名的神秘牛友
07-10 11:33
点赞 评论 收藏
分享
不愿透露姓名的神秘牛友
06-04 15:20
牛客61197583...:看到室友一个个没怎么学通过关系直接入职或者接到面试,真的很难受。八股不知道背了多少遍,hot100也刷了1.5遍了,但就是没有面试的机会,唉
点赞 评论 收藏
分享
06-19 19:06
门头沟学院 Java
码农索隆:别去东软,真学不到东西,真事
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务