1、GREATEST(n1,n2,n3,..........) 获取最大值testdb=#SELECT GREATEST(3,5,1,8,33,99,34,55,67,43); +---------------------------------------------------------+ |...
分类:
数据库 时间:
2015-05-07 11:53:25
阅读次数:
178
唐福林 Lucene: http://blog.fulin.org/category/lucene
阿里数据团队: http://www.alidata.org
觉先Lucene: http://www.cnblogs.com/forfuture1978/
代震军MongoDB: http://www.cnblogs.com/daizhj
王晓华...
分类:
数据库 时间:
2015-05-07 08:54:52
阅读次数:
130
postgresql中,并没有分区表的创建命令,是通过创建继承表及约束等规则来创建,步骤繁琐且麻烦,封装了一个方法。便于创建分区表:CREATE TABLE "odl"."user_action_fatt0" (
"date_id" numeric(8,0),
"chnl_id" numeric(2,0),
"user_acct_type" numeric(2,0),
"user_id" numer...
分类:
数据库 时间:
2015-05-06 17:42:59
阅读次数:
253
在java和一些常用的数据中(mysql/sqlsever)中进行年月日分秒转换的时候,都是用 SELECT?to_char(CURRENT_DATE,‘yyyy-MM-dd?hh:MM:ss‘) 但是在Postgresql中这样用就会出现问题,在pg中执行上面的语句返回的结果为...
分类:
数据库 时间:
2015-05-06 11:21:08
阅读次数:
1075
http://blog.csdn.net/neo_liu0000/article/category/797059第六章 数据类型6.1概述 PostgreSQL 提供了丰富的数据类型。用户可以使用 CREATE TYPE 命令在数据库中创建新的数据类型。PostgreSQL 的数据类型被分为四种,分...
分类:
数据库 时间:
2015-05-05 14:23:50
阅读次数:
968
数据类型:
整型: smallint integer bigint
任意精度数值: numeric(precision,scale) 精度、刻度
浮点型: real
序号类型(自增): serial bigserial
字符类型:varchar(n) char(n) text
日期类型:timestamp8字节 2013-05-17 13:01:38.437925...
分类:
数据库 时间:
2015-05-04 18:13:22
阅读次数:
261
在postgresql中我们在执行存储过程中往往会使用select 存储过程,但是如果存储过程中再调用 存储过程时,就不能这样用了,应该用perform 存储过程,来看看官方文档的说明 ======================================...
分类:
数据库 时间:
2015-05-04 12:09:36
阅读次数:
179
http://blog.csdn.net/cdnight/article/details/18082255这里是一份经过再三调试测试而成功的postgres数据库单表crud存储过程,请注意,对于多结果的返回方式,请查看 getPageByCondition的书写方式,用的是refcursor,返回...
分类:
数据库 时间:
2015-05-02 23:10:35
阅读次数:
338
1. 环境安装sudo apt-get install apache2sudo apt-get install postgresql-9.1sudo apt-get install php5sudo apt-get install php5-pgsql2. 下载wordpress,wget -O w...
分类:
数据库 时间:
2015-04-30 21:40:39
阅读次数:
403