PostgreSQL中的基本命令总结
来源:互联网 发布:北京航空运输十年数据 编辑:程序博客网 时间:2024/05/17 22:22
最近几天由于工作需要,用到PostgreSQL,安装的是64 位的PostgreSQL 9.6版本,现将基本的命令行指令总结一下,以备忘。
特别说明:Command line execute files are in the folder <PostgreSQL install dir>\bin
(1)菜单是最简单的方法:
(2)指令创建:createdb -U postgres test
2、Restore 数据库:pg_restore -d test -U postgres c:\\test.backup
3、删除数据库:dropdb -U postgres test
Sometimes the database couldn't be dropped because other sessions are using it. In this scenario, run the command in SQL Shell(psql) to close all the sessions:
4、备份数据库:pg_dump -f c:\\test.backup -U postgres -W -F c test
以上四部分是最常用的数据库操作指令,数据库建好之后,接下来就是在Server中配置数据库,由于时间关系,该部分现在不作说明,后面如果时间允许,再更新博文将此部分加进去。
PostgreSQL安装包下载:https://pan.baidu.com/s/1bFXlAQ
阅读全文
0 0
- PostgreSQL中的基本命令总结
- PostgreSQL基本命令
- PostgreSQL基本命令
- PostgreSql基本命令
- postgreSQL 命令总结
- 【PostgreSQL】PostgreSQL操作-psql基本命令
- [整理]postgresql基本使用命令
- [Postgresql] 简单命令使用总结
- PostgreSQL中的常用元命令
- 【db课程实习】PostgreSQL基本命令
- linux中的一些基本命令的理解与总结
- 化为基本命令总结!
- mysql基本命令总结
- mysql 基本命令总结
- sqlplus基本命令总结
- gdb 基本命令总结
- Linux 基本命令 总结
- mysql基本命令总结
- git两日学习小结
- 浅谈MVC
- Jmeter之Java Request
- jdk sdk区别
- python-集合
- PostgreSQL中的基本命令总结
- 使用plsql查询数据显示为乱码解决方案
- Android 序列化和反序列化
- (转)动态规划和贪心算法的区别
- PAT 1002 A+B for Polynomials (25) Python
- Codeforces Beta Round #6 (Div. 2 Only) E. Exposition
- 猜数字游戏
- C#反射详解
- iOS