PostgreSQL 查询、创建、删除索引

--查询索引
select * from pg_indexes where tablename='tab1';   

--创建索引  tab1_bill_code_index  为索引名,
create index  tab1_bill_code_index  on  "db1".tab1(bill_code);

--删除索引
drop index tab1_bill_code_index  ;

 

posted @ 2019-08-17 12:01  低调码农哥!  阅读(9158)  评论(0编辑  收藏  举报