2019年10月1日

postgresql —— 零碎笔记

摘要: 聚合函数 -- 聚合查询 SELECT city, max(temp_lo) FROM weather WHERE city LIKE 'S%' GROUP BY city HAVING max(temp_lo) < 40; -- HAVING 子句始终包含聚合函数, 否则没有意义 更新语句 -- 阅读全文

posted @ 2019-10-01 22:56 Lemo_wd 阅读(216) 评论(0) 推荐(0)

postgresql —— 查看索引

摘要: 查索引 语句: SELECT tablename, indexname, indexdef FROM pg_indexes WHERE tablename = 'user_tbl' ORDER BY tablename, indexname; 查表名 SELECT tablename FROM pg 阅读全文

posted @ 2019-10-01 19:59 Lemo_wd 阅读(9057) 评论(0) 推荐(1)

导航