Psql powerful, skills how to use only follow-up slowly supplemented, see a tool first see how to use Help$ psql #连接到数据库服务器, in which you can enter the appropriate SQL statement or PSQL command, psql command starts with \$ \l #列出所有的数据库$ \d #查看表的结构$
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
Common Psql commands
Source: http://www.cnblogs.com/happyhotty/articles/1920455.html
\ D[
Table]
List tables in the database or (if declared) tables
TableIf the table name is declared with a wildcard ("*"), it lists the column/field
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
I. Description of the orderPsql is the interactive terminal of PostgreSQL, which is equivalent to Sqlplus in Oracle. When the command is executed to connect to the database, the default user and database are Postgressecond, the command parameters-C
Tag: User CTI SSI create cancels VAR use SSE byteTransferred from: https://www.cnblogs.com/chjbbs/p/6480687.htmlUsage:Pg_dump [OPTION] ... [DBNAME] The database name is last, not specified by default is the database specified by the system variable
Usage:Pg_dump [OPTION] ... [DBNAME] DatabaseLast name, do not specify the default is the database specified by the system variable pgdatabase.General Options: (generic option)-F,--file=filename output file or directory nameFile name saved after
\?-------------------------------------General\copyright display the use and release license terms for PostgreSQL\g [file] or; Execute the query (and write the results to a file or | pipeline)\gset [PREFIX] executes the query and saves the result to
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
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.