码迷,mamicode.com
首页 >  
搜索关键字:postgres pg_upgrade pg_dumpall    ( 915个结果
PG extract 函数示例
pg 对时间的处理还是很灵活的, + - * /都有支持期间有个extract 函数还是很有用的,我们先来看看几个例子:[code]postgres=# select extract(epoch from '1970-01-01'::timestamp) ; date_part---------.....
分类:其他好文   时间:2015-04-01 17:00:53    阅读次数:139
FATAL: role "root" does not exist解决办法
[root@~]#su?-?postgres Last?login:?Wed?Apr??1?10:28:10?CST?2015?on?pts/2 -bash-4.2$?psql?-U?postgres psql?(9.4.0) Type?"help"?for?help. postgres=#create?user?root?with?passw...
分类:其他好文   时间:2015-04-01 13:38:42    阅读次数:177
python+postgreSql
def getopenconnection(user='postgres', password='1234', dbname='dds_assgn1'): return psycopg2.connect("dbname='" + dbname + "' user='" + user + "' ...
分类:数据库   时间:2015-03-20 06:58:26    阅读次数:185
Postgres查看数据库中的表及表中字段和类型
\dt \d \q 如上图, \dt命令比在pgAdminIII中查看表方便多了 \d命令查看表的字段类型
分类:数据库   时间:2015-03-19 18:02:28    阅读次数:181
使用copy命令把csv文件导入postgres数据库
1. 把excel另存为csv 2. 使用txt打开csv格式 3. 以UTF-8格式编码,另存为blacklist20141231.csv 4. 创建一个表 Create table backlist_20141231(日期 varchar(20),手机号码 nvarchar(20),渠道 nva...
分类:数据库   时间:2015-03-11 21:20:03    阅读次数:201
远程连接postgres,出现server doesnt listen
已修改pg_hdb.conf中的# IPv4 local connections:host all all 127.0.0.1/32 md5在下面添加一行代码: host all all 0/0 md5 //所有用户都能访问http://blog.sina.com.cn/s/blog_77507.....
分类:其他好文   时间:2015-03-09 14:16:03    阅读次数:437
Postgres数据库中excel的导入和导出
使用Windows系统,excel的总是不可避免。Postgres版本为9.3.6;Windows 8.1 64位。这里没有找到excel直接导入Postgres的方法,有一个工具是xlstopg,类似SQL Server的导入和导出数据向导,但不是开源的;可以到网上搜下玩玩(好像试用版只能导100...
分类:数据库   时间:2015-03-08 20:03:51    阅读次数:1952
Postgres不同数据库间访问
Postgres中不同数据库间无法直接访问,比如有数据库test1和test2,每个数据库中都有一个表为tablea;我使用的操作系统为win8.1,postgres版本为9.3.6;使用pgAdminIII工具访问postgres; 分别在两个数据库(test1,test2)中创建tablea; ...
分类:数据库   时间:2015-03-08 12:59:14    阅读次数:290
CentOS7 SonarQube安装
CentOS7 SonarQube安装CentOS7 SonarQube安装Download从sonarqube下载sonarqube-5.0.zip从sonarqube下载sonar-runner-dist-2.4.zipDatabase设定Postgres数据库su postgrespsql -...
分类:其他好文   时间:2015-02-28 21:33:05    阅读次数:989
debian8下pgsql的主备同步热切手动脚本
9以后,通过流复制直接做主:192.168.1.111从:192.168.1.222需要在postgres帐号下先配置ssh互信,双机都配置sh-keygen -t rsassh-copy-id -i ~/.ssh/id_rsa.pub postgres@192.168.1.222测试ssh 192...
分类:数据库   时间:2015-02-26 13:26:24    阅读次数:333
915条   上一页 1 ... 80 81 82 83 84 ... 92 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!