postgres=# create type complex as(postgres(# r double precision,postgres(# i double precisionpostgres(# );CREATE TYPEpostgres=# create type inventory_...
分类:
数据库 时间:
2015-12-14 16:37:32
阅读次数:
306
一.安装pg_stat_statements1.安装插件pg_stat_statements[root@localhostsoft]#cdpostgresql-9.3.0[root@localhostpostgresql-9.3.0]#lsaclocal.m4config.logconfigurecontribdocGNUmakefile.inINSTALLREADMEconfigconfig.statusconfigure.inCOPYRIGHTGNUmakefileHISTORYMakefi..
分类:
其他好文 时间:
2015-12-11 16:46:38
阅读次数:
1354
PostgreSQL有生成序列的函数,可以方便的进行造数据。这里我用ORACLE实现了PGSQL的generate_series函数功能。POSTGRESQL.t_girl=#select*fromgenerate_series(1,10);
generate_series
-----------------
1
2
3
4
5
6
7
8
9
10
(10行记录)
时间:1.290ms
t_girl=#select*fromgen..
分类:
数据库 时间:
2015-12-09 15:19:27
阅读次数:
269
Oracle 实现PGSQL的GENERATE_SERIES功能呢...
分类:
数据库 时间:
2015-12-09 15:17:51
阅读次数:
281
当我们order排序不能够实现我们想要的内容时候,尝试一下NLSSORT这个函数吧他不仅仅按照姓氏排序,名也会排序:nls_param用于指定语言特征,格式为nls_sort=sort,nls_sort值为:按照部首排序:SCHINESE_RADICAL_M按照笔划排序:SCHINESE_STROKE_M按照拼音排序:SCHINESE_PINYI..
分类:
数据库 时间:
2015-12-08 16:13:53
阅读次数:
275
postgres=# \h create tablespace Command: CREATE TABLESPACEDescription: define a new tablespaceSyntax:CREATE TABLESPACE tablespace_name [ OWNER ...
分类:
数据库 时间:
2015-12-07 20:31:00
阅读次数:
185
Checkpoints can be a major drag on write-heavy PostgreSQL installations. The first step toward identifying issues in this area is to monitor how oft.....
分类:
数据库 时间:
2015-12-06 21:08:25
阅读次数:
269
python可以通过第三方模块连接postgresql. 比较有名的有psycopg2 和python3-postgresql(一)psycopg2ubuntu下安装sudo apt-get install python3-psycopg2创建一个test.py文件import psycopg2# ...
分类:
数据库 时间:
2015-12-06 17:27:12
阅读次数:
1358
本文记录PostgreSQL在CentOS6.7上安装、配置、使用等方面的资料以及操作过程。一、准备工作1、CentOS6.72、网络ok二、安装使用yum安装postgresql。yuminstallpostgresql三、初始化当成功安装好postgresql后,根据官网说明,还需要运行以下命令。
分类:
数据库 时间:
2015-12-06 02:01:42
阅读次数:
176
CodeBuilder是一个通过获取数据库表和字段定义,通过模板转换生成三层结构、实体模型等代码的工具。以其他同类的代码生成器相比,CodeBuilder具有以下几个不凡的特性:多数据源支持 SqlServer、Oracle、MySQL、SQLite、PostgreSQL、Firebird,或 Ol...
分类:
其他好文 时间:
2015-12-04 00:53:01
阅读次数:
196