摘要: 1. select 查询 in、not in、exists、not exists 的区别 exists 效率远远大于 in CREATE SEQUENCE "ioc_dw_second"."test0002_seq" INCREMENT 1 MINVALUE 1 MAXVALUE 922337203 阅读全文
posted @ 2020-07-27 15:59 star521 阅读(3050) 评论(0) 推荐(0) 编辑
摘要: 查看表大小 -- 查出所有表(包含索引)并排序 -- 查出所有表(包含索引)并排序 SELECT table_schema , table_name AS table_full_name, pg_size_pretty(pg_total_relation_size('"' || table_sche 阅读全文
posted @ 2020-07-27 15:04 star521 阅读(1231) 评论(0) 推荐(0) 编辑