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
PostgreSQL operations-Basic psql commands and postgresql operations-psql
1. Establish a database connection----------------Access PostgreSQL database: psql-h IP address-p port-U Database Name
Enter the Database Password.
2. Access the database
First, establish a database connection----------------Access PostgreSQL database: PSQL-H IP address-P Port-U database nameYou will then be asked to enter the database passwordSecond, access to the database1. List database: \l2. Select database: \c
D:\Program files\postgresql\9.3\scriptsThis is the default buffer position of the psql;Psql's command: D:\Program files\postgresql\9.3\scripts\runpsql.bat--Query buffer\e [file] [line] Edit query buffer (or file) using external editor\EF [FUNCNAME
Explore the efficiency of select in postgresql, selectpostgresql
You can see this problem in zhihu:
How does MySQL query select * from table where id in (hundreds or thousands of IDS) to improve efficiency? Modify
E-commerce websites, a commodity
PostgreSQL tutorial (18): client commands (2), postgresql tutorial
VII. pg_dump:
Pg_dump is a tool used to back up PostgreSQL databases. It can even perform a full and consistent backup when the database is being used concurrently without blocking
To see this problem on the understanding that:
How does MySQL query select * FROM table where ID in (hundreds of or thousands of IDs) increase efficiency? Modify
Electronic Business website, a commodity property sheet, hundreds of thousands of
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.