摘要: 模式(Schema)一个 PostgreSQL 数据库集群 包含一个或多个命名的数据库。用户和用户组在整个集群的范围内 是共享的,但是其它数据并不是共享的。任何给定的与服务器的客户连接都只 能访问在一个数据库里的数据,就是那个在连接请求里声明的。注意: 一个集群的用户并不一定要有访问集群内所有数据库 阅读全文
posted @ 2017-10-04 22:23 勤奋的蓝猫 阅读(20) 评论(0) 推荐(0)
摘要: postgresql基本命令操作:登陆数据库:[postgres@localhost ~]$ psql -Utestwjw -h 127.0.0.1 -dpostgres -p 36985 Password for user testwjw: psql.bin (9.5.9)Type "help" 阅读全文
posted @ 2017-10-04 22:18 勤奋的蓝猫 阅读(25) 评论(0) 推荐(0)
摘要: 1.本地登陆postgresql,建库授权,设置密码服务器本地登陆postgresql数据库(默认是不需要密码的)postgres@localhost ~]$ psqlpsql.bin (9.5.9)Type "help" for help.创建角色,并且给角色设置密码:postgres=# cre 阅读全文
posted @ 2017-10-04 18:59 勤奋的蓝猫 阅读(78) 评论(0) 推荐(0)
摘要: 二进制安装步骤:groupadd postgres useradd -g postgres postgres id postgres passwd postgres mkdir -p /data/postgresql/data mkdir -p /data/postgresql/log tar xf 阅读全文
posted @ 2017-10-04 18:13 勤奋的蓝猫 阅读(4) 评论(0) 推荐(0)
摘要: 介绍:布尔类型的操作符:逻辑操作符和比较操作符 逻辑操作符:and,or,not 需要注意的是:false and null结果为false 比较运算符:is is true is false is not true is not false is unknown is not unknown is 阅读全文
posted @ 2017-10-04 10:38 勤奋的蓝猫 阅读(8) 评论(0) 推荐(0)