select 'exec dbms_stats.unlock_table_stats("'||user||'","'||table_name||'");' from user_tab_statistics where stattype_locked IN ('ALL','DATA','CACHE');
```
## 2.7 创建唯一索引
```sql
create unique index gd_person_edu_uniq on GD_PERSON_EDU(PERSON_ID,EDU_,EDU_CODE,EDU_TYPE,EDU_TYPE_CODE);