I. INTRODUCTION to psql is a PostgreSQL command line interactive client tool, similar to the command line tool sqlplus: 1 in Oracle allows you to interactively type SQL or commands, then they are sent to the PostgreSQL server, and then the SQL or
Export table
Pg_dump-h localhost-u postgres (user name) database name (with user name by default)-T table (table name) > Dump.sql
Import Table
Psql-f Dump.sql
Example of a complete import export table
1, check the original database
-bash-3.2$
Reprint, original link http://linux.cn/portal.php?mod=view&aid=170 using Ubuntu to build a Ruby on Rails Local development environment
Want to develop a Ruby on Rails app? Although there are already some (beginner) Ruby on Rails
Enter PostgreSQL1 Enter the database default installation will create Postgres users, using Postgres user, Psql command directly into the database: Bash code $ su postgres//psql user $ Psql//default direct access to $ psql-u posrgres-d dbname//Use
The latest versions used in this tutorial are Ubuntu 10.10, Ruby 1.9.2, and rails 3.0.7. This tutorial is also tested on Ubuntu 10.04 and Ubuntu 11.04, which will be released soon.
Original address: http://linux.cn/forum.php? MoD = viewthread & tid =
Installing PostgreSQL using RPM packages in Linux
Postgresql and MySQL are currently popular and active open source relational database systems. Compared with high-end Oracle commercial products, Postgresql and MyQL have much room for improvement in
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.