随笔分类 -  postgresql

摘要:SQL server的studio有一个功能,可以随意拖拽表字段,更改其位置并使之重新排序,有同事问起,Postgres是否也可以。Postgres每个字段的顺序是在系统表pg_attribute里面定义,下面实际操作一下看是否支持。 数据准备: postgres=# create table tb 阅读全文
posted @ 2021-12-02 14:00 数据库集中营 阅读(496) 评论(0) 推荐(0)
摘要:Postgresql里面内置了很多的实用函数,下面介绍下组合和切割函数一.组合函数1.concata.语法介绍 concat(str "any" [, str "any" [, ...]]) Concatenate all but first arguments with separators. T 阅读全文
posted @ 2021-11-01 11:04 数据库集中营 阅读(473) 评论(0) 推荐(0)
摘要:问题背景 加压测试过程中发现插入数据过程中报错:could not write to hash-join temporary file: 设备上没有空间。但是查看服务器还有很多空闲空间,是什么导致这样的错误呢? 查看执行脚本 insert into db_zjgj.result_rule_cwjbx 阅读全文
posted @ 2021-11-01 09:04 数据库集中营 阅读(1021) 评论(0) 推荐(0)