题解 | #创建索引#

创建索引

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

create index idx_duration on examination_info(duration);
create UNIQUE INDEX uniq_idx_exam_id on examination_info(exam_id);
create fulltext INDEX full_idx_tag on examination_info(tag);

通过create创建索引,格式为create + index(普通索引) | fulltext index(全文索引) | unique index(唯一索引) + 索引列名称 + on + 表名(在哪个字段增加就写哪个字段)

全部评论

相关推荐

05-01 22:41
中南大学 Java
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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