
Postgresql数据库
CodingAlgo
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Centos7下Postgresql源码编译安装
(一)Installation Procedure (1) Install wget and gcc yum -y install wget yum -y install gcc ##################################################### (2) Set path, download and decompress install files [ro...原创 2018-02-09 12:01:15 · 642 阅读 · 0 评论 -
两张表中某个子段的关联
update examination set patient_id = (select patient_id from match where match.treatment_id=examination.treatment_id) where examination.treatment_id in (select treatment_id from match)原创 2018-04-16 17:12:06 · 148 阅读 · 0 评论 -
Postgresql数据库备份与恢复
pg_dump.exe -h localhost -p 5432 -U postgres -d dbname -F c -b -f "D:\dbnamebak.dump" /home/My_Softwares/Postgresql/Install/bin/pg_restore --host localhost --port 5432 --username "postgres" --dbname ...原创 2018-03-04 13:58:30 · 242 阅读 · 0 评论 -
pgadmin 无法连接 centos7 postgresql
首先 查看 1.用 ps -ef|grep postgres 查看进程是否已经启动;正常情况如下: postgres 1445 1 0 07:54 ? 00:00:00 /usr/bin/postgres -D /var/lib/pgsql/data -p 5432 postgres 1853 1445 0 07:54 ? 00:00:00 postgres: logger process转载 2018-02-24 14:25:18 · 592 阅读 · 0 评论 -
linux安装pgadmin4--postgresql管理工具
原创 2016年12月11日 20:32:31 标签:pgadmin /postgresql /python /pip 目录 目录 一 下载二 安装三 配置四 总结声明 pip类似RedHat里的yum,安装起Python包来十分方便。 一 下载 1.1 - 安装pgadmin4,首先确保有python环境(版转载 2018-02-24 14:23:12 · 2618 阅读 · 0 评论 -
C/C++连接Postgresql数据库(1)
最新版本的libpqxx可从链接下载:Libpqxx下载。 所以下载最新版本,并按照以下步骤: wget http://pqxx.org/download/software/libpqxx/libpqxx-4.0.tar.gz tar xvfz libpqxx-4.0.tar.gz cd libpqxx-4.0 ./configure make make install Shell 可以启原创 2018-02-24 13:49:48 · 1212 阅读 · 0 评论 -
C++连接Postgresql数据库进行数据预筛选(1)
/* * PreSelect.cpp * * Created on: Mar 14, 2018 * Author: zlf */ #include #include #include #include #include #include #include #include using namespace std; using namespace pqxx原创 2018-03-14 21:05:11 · 333 阅读 · 0 评论 -
C++连接postgresql数据库 插入变量中的值
/* * db.cpp * * Created on: Mar 7, 2018 * Author: zlf */ #include #include #include #include using namespace std; using namespace pqxx; int main(int argc, char* argv[]) { try {原创 2018-03-08 14:41:34 · 992 阅读 · 0 评论 -
postgresql数据库 多张表之间的多对多关系
CREATE TABLE IF NOT EXISTS public."Visit" ( "PatientID" character varying NOT NULL, "VisitNumber" character varying NOT NULL, "LabTestID" character varying NOT NULL, "LabTestName" character va...原创 2018-02-28 13:41:10 · 1213 阅读 · 0 评论 -
C++ 连接postgresql数据库,进行数据筛选
/* * db.cpp * * Created on: Mar 7, 2018 * Author: zlf */ #include <iostream> #include <pqxx/pqxx> #include <time.h> #include <vector> #include <string> #incl...原创 2018-03-07 14:01:54 · 1465 阅读 · 1 评论 -
postgresql中加入不可见字符,并清除
postgresql中加入不可见字符,并清除create table if not exists test_table(name character varying(10), id character varying(10)); delete from test_table; INSERT INTO test_table VALUES ('aaa', '000'); INSERT INTO t...原创 2018-04-25 12:11:37 · 841 阅读 · 0 评论