postgres数据库几个重要的备忘命令
2014-01-10 10:32
357 查看
1. about dumping -----pg_dump -h 10.0.253.110 -U postgres legendary -t festivals > dump.sql
2. create or drop table in psql terminal
psql -h ... -U user -d dbname
DROP TABLE must be upper (大写)
for detail see
http://articles.slicehost.com/2009/7/14/postgresql-creating-and-dropping-tables
3. create database or drop database
psql -h db -U postgres -c "CREATE DATABASE gerrit"
psql -h db -U postgres -c DROP DATABASE gerrit"
2. create or drop table in psql terminal
psql -h ... -U user -d dbname
DROP TABLE must be upper (大写)
for detail see
http://articles.slicehost.com/2009/7/14/postgresql-creating-and-dropping-tables
3. create database or drop database
psql -h db -U postgres -c "CREATE DATABASE gerrit"
psql -h db -U postgres -c DROP DATABASE gerrit"
相关文章推荐
- MySql delimiter的作用是什么
- 数据库结构设计-了解多少
- SQL Server: Top 10 Secrets of a SQL Server Expert
- SQL Server: Top 10 Secrets of a SQL Server Expert
- SQL SERVER 使用select和union插入多条数据
- pl/sql中的record用法
- MERGE的用法
- MySQL5 LOAD DATA 的使用
- MongoDB:mongodb的备份和恢复
- MongoDB:mongodb的备份和恢复
- oracle直接调用web services
- SQL SERVER UNION和UNION ALL
- memcached分布均匀性
- memcache command
- Mysql中查找重复数据,删除重复数据
- oracle10g安装
- MyEclipse配JDBC连接oracle后中文字段出现乱码!
- 理想化 redis
- oracle 列属性修改
- [转载]12款免费与开源的NoSQL数据库介绍