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
Log in to the PostgreSQL database consolepsql 数据库名Login successful Display[zpf@kevin ~]$ psql postgrespsql (9.4.1)Type"help"for help.postgres=#Create DATABASE User xxxCREATE USER xxx WITH PASSWORD ‘xxxxxx‘;Create a database yyy and specify the owner
Log in to the PostgreSQL database consolepsql 数据库名Login successful Display[zpf@kevin ~]$ psql postgrespsql (9.4.1)Type"help"for help.postgres=#Create DATABASE User xxxCREATE USER xxx WITH PASSWORD ‘xxxxxx‘;Create a database yyy and specify all of
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
Since MySQL was acquired by Oracle, PostgreSQL has become the first choice for open-source relational databases.This article describes the installation and basic usage of PostgreSQL for first-time users to get started. The following is based on the
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.