2016年10月18日

postgresql命令

摘要: 连接数据库, 默认的用户和数据库是postgrespsql -U user -d dbname 切换数据库,相当于mysql的use dbname\c dbname列举数据库,相当于mysql的show databases\l列举表,相当于mysql的show tables\dt查看表结构,相当于d 阅读全文

posted @ 2016-10-18 15:56 myf008 阅读(199) 评论(0) 推荐(0) 编辑

postgresql安装

摘要: 一、yum方式安装 1.查看postgresql版本信息,默认版本通常较低,如PostgreSQL 8.4, 2.安装较新的PostgreSQL yum repository 3.安装新版本PostgreSQL 4.查看安装 查看是否安装了: postgresql96-server-9.6.0-1P 阅读全文

posted @ 2016-10-18 15:53 myf008 阅读(228) 评论(0) 推荐(0) 编辑

导航