#索引(idx_tb_dept索引别名) #创建 create index idx_tb_dept on tb_emp(id); #(添加唯一约束时,数据库实际上会自动添加唯一索引) create unique index idx_tb_dept on tb_emp(id); #查看 show index from tb_dept; #删除 drop index idx_tb_dept on tb_dept;
sql-==索引
最新推荐文章于 2024-08-18 20:03:03 发布
#索引(idx_tb_dept索引别名) #创建 create index idx_tb_dept on tb_emp(id); #(添加唯一约束时,数据库实际上会自动添加唯一索引) create unique index idx_tb_dept on tb_emp(id); #查看 show index from tb_dept; #删除 drop index idx_tb_dept on tb_dept;