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

对first_name创建唯一索引uniq_idx_firstname

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

create unique index uniq_idx_firstname
on actor (first_name); #前半句是创建索引键名,后半段是基于某表的某字段,字段外的括号是必须的#

create index idx_lastname
on actor (last_name);

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

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