-- 索引:在不读取整个表的情况下,索引使数据库应用程序可以更快的查找数据
-- 1.create index
create index index_deptid on zhonghq_dept(dept_name);
create index index_deptid on zhonghq_dept(dept_name,remark);
select * from zhonghq_dept;
delete from zhonghq_dept;
-- 2.create unique index
-- 唯一的索引意味着两个行不能拥有相同的值。比如两个行的remark不能相同。
create unique index index_remark on zhonghq_dept(remark);