实验环境: DB is PostgreSQL version 8.2.15 JDK1.8 测试一 使用JDBC查询一个SQL: 结果: Start query1:Using Time: 11519 ms 测试二 使用JDBC PreparedStatement 查询相同的SQL: 结果: Start ...
分类:
数据库 时间:
2017-07-07 15:33:05
阅读次数:
1470
1.登陆gitlab的安装服务查看配置文件 查看/etc/passwd文件里边gitlab对应的系统用户 2.根据上面的配置信息登陆postgresql数据库 [root@localhost ~]# su - gitlab-psql //登陆用户 -sh-4.1$ psql -h /var/opt/ ...
分类:
数据库 时间:
2017-07-07 14:19:19
阅读次数:
460
参考来自:https://stackoverflow.com/questions/1109061/insert-on-duplicate-update-in-postgresql/1109198#1109198 功能需求:接口定义中包含字段update,当它为true时,批量插入中有记录造成唯一键重 ...
分类:
数据库 时间:
2017-07-07 13:30:00
阅读次数:
298
假设postgresql安装位置 然后,使用dos窗口进入这个位置 导入(本地和默认端口可以不用属性) psql -d 数据库名 -h ip地址 -p 数据库端口 -U 用户名 -f 文件地址 完成 然后,使用dos窗口进入这个位置 导入(本地和默认端口可以不用属性) psql -d 数据库名 -h ...
分类:
数据库 时间:
2017-07-07 13:29:01
阅读次数:
234
e Path to the directory containing the EDB Advanced Server utility programs (pg_dump, pg_restore etc). Path to the directory containing the PostgreSQL ...
分类:
数据库 时间:
2017-07-06 20:53:51
阅读次数:
271
https://www.howtoforge.com/tutorial/ubuntu-postgresql-installation/ sudo apt-get install postgresql sudo apt-get install phppgadmin ...
分类:
数据库 时间:
2017-07-05 21:08:30
阅读次数:
192
把一行数据按Json字符串形式返回 select row_to_json( table_code)from table_code select array_to_json( array_agg(row_to_json(code))) from ( select 子查询) ...
分类:
数据库 时间:
2017-07-04 20:01:32
阅读次数:
667
pg_restore restores a PostgreSQL database from an archive created by pg_dump.Usage: pg_restore [OPTION]... [FILE]General options: -d, --dbname=NAME co ...
分类:
数据库 时间:
2017-07-04 14:59:32
阅读次数:
673
统计文件信息: $ /opt/cdh-5.3.6/hadoop-2.5.0/bin/hdfs dfs -text /user/hadoop/wordcount/input/wc.input hadoop spark spark hadoop oracle mysql postgresql postg ...
分类:
其他好文 时间:
2017-07-04 14:48:57
阅读次数:
256
登录postgresql数据库控制台 psql 数据库名 登录成功显示 [zpf@kevin ~]$ psql postgres psql (9.4.1) Type "help" for help. postgres=# 创建数据库用户xxx CREATE USER xxx WITH PASSWOR ...
分类:
数据库 时间:
2017-07-03 22:38:16
阅读次数:
324