![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
查询
熊猫随我流浪
以梦为马,韶华为证,我将赢得自己的一片天空!
展开
-
pgsql索引的相关用法(包括视图)
sql语句的分析,通过explain analyze 语法可以观察到是什么样的查询。创建索引 CREATE INDEX 索引名 ON 表名(列名,列名);删除索引 DROP INDEX 索引名;针对具有索引的列不能使用 like ‘%xxx%’,可以使用like ‘xxx%’不能使用 !=,<>,or等都会导致进行全局搜索面对or 可以使用 union、union...原创 2019-12-13 13:31:07 · 1533 阅读 · 0 评论 -
Sql同一字段中相同数据的数量统计
select DISTINCT monitoring_stations."管道",count(0) as 数量FROM monitoring_stations,monitoring_parametersWHERE monitoring_stations."名称"=monitoring_parameters."名称" and monitoring_parameters."参数类型" like ...原创 2019-11-29 13:32:19 · 4303 阅读 · 0 评论