![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
postgresql
文章平均质量分 52
呜呼哀哉s
这个作者很懒,什么都没留下…
展开
-
postgresql 触发器、触发函数 动态建表
PostgreSQL 创建分区表,SQL优化之PostgreSQL Table Partitioning PostgreSQL中使用动态SQL-实现自动按时间创建表分区 declare createOn varchar(32); createYY varchar(4); tableName VARCHAR(48); isExist int; r record; sqlStr text; sq...原创 2018-08-08 17:55:01 · 3476 阅读 · 0 评论 -
postgres 删除重复数据、生成随机数、跨库查询、一段间隔后的时间、替换字段中的部分字符
postgres删除重复数据 sql语句: delete from table where ctid not in (select min(ctid) from table group by tableColumn) 其中: table是数据表表名, tableColumn是判断数据是否重复的关键列,根据情况替换; ctid是postgres中的关键字,不可替换。 可以将min(ct...原创 2018-11-27 21:18:44 · 399 阅读 · 0 评论