postgresql版本:psql (9.3.4)
1、增加一列ALTER TABLE table_name ADD column_name datatype;
2、删除一列
ALTER TABLE table_name DROP column_name;...
分类:
数据库 时间:
2014-08-12 22:18:24
阅读次数:
454
SQL>conn/assysdbaSQL>selectscn,to_char(time_dp,‘yyyy-MM-ddhh24:mi:ss‘)fromsmon_scn_time;sys.smon_scn_time表中记录了时间戳与SCN之间的对应关系,每隔五分钟会记录一次时间戳与SCN的对应关系到该表中。该表记录了最近1440个时间戳与SCN的对应关系。
分类:
数据库 时间:
2014-08-12 17:41:54
阅读次数:
290
postgresql中相当与mysql的show databases、show tables、describe table操作的句子...
分类:
数据库 时间:
2014-08-12 10:25:43
阅读次数:
185
以下来结论自tcpcopy & gryphon讨论群经过试验测试得出,与网上较多介绍有些不同,不保证肯定正确。经过压力测试试验,至少在我机器上面,得出如下结论:1)reuse这个参数毫无用途(timestamp开启的情况下),有它没它一个样2)recycle确实影响比较大(timestamp开启的情...
分类:
其他好文 时间:
2014-08-11 21:03:02
阅读次数:
179
将时间转换为时间戳: select unix_timestamp( ‘2009-10-26 10-06-07‘ ) 如果参数为空,则处理为当前时间 : select from_unixtime(1256540102) 有些应用生成的时间戳是比这个多出三位,是毫秒表示,如果要转换,...
分类:
数据库 时间:
2014-08-11 18:19:32
阅读次数:
212
ENTBOOST V0.9版本发布,更新内容:1.完善多人群组聊天,提高群组聊天性能及稳定性;2.苹果IOS SDK,增加联系人管理功能,优化API和内部流程,修复部分BUG;3.增加企业应用功能集成REST接口,服务端部分BUG修正;4.恩布企业IM Windows版本增加内置集成PostgreSQL数据库,方便企业部署;
CentOS版本下载:点击下载
Windows版本下载:点击下载...
分类:
其他好文 时间:
2014-08-11 10:13:52
阅读次数:
299
第一步:首先安装postgresql93的RPM资料库 wget http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-redhat93-9.3-1.noarch.rpm 第二步:执行命令安装rpm -ivh pgdg-redhat93-9.3-1.noarch.rpm 第三步:执...
分类:
数据库 时间:
2014-08-11 08:29:32
阅读次数:
374
项目需要使用gisgraphy,怎奈gisgraphy3.0只支持postgis1.5.因此只能安装老版本的posgresql和postgis了,从postgis的support matrix图可以看到postgis不同版本支持的postgresql,
我安装的是postgresql9.1.14.
1.下载postgresql9.1版本的源码,http://www.postgresql...
分类:
数据库 时间:
2014-08-10 13:01:40
阅读次数:
231
insert into tablerestore select * from tablerestore as of timestamp to_Date('2014-8-8 15:00:00','yyyy-mm-dd hh24:mi:ss') 参数解释:tablerestore 要恢复数据的表后面的时间是恢复截止到某个点的数据...
分类:
数据库 时间:
2014-08-08 21:33:36
阅读次数:
324
先行输入:psql gis\d 显示当前数据表 List of relations Schema | Name | Type | Owner --------+--------------------+-------+--------...
分类:
数据库 时间:
2014-08-08 21:00:46
阅读次数:
357