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 #查看表的结构$
The command syntax for Psql is:psql [Options] [dbname [username]]The Psql command-line options and their meanings are listed in table 1-1. Use the following command to see a complete list of options for Psql:$ psql--helpTable 1-1 psql command-line
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
\?-------------------------------------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
We can use the psql command to query the SQL syntax. Switch to the PostgreSQL user,
We can use the psql command to query the SQL syntax. Switch to the PostgreSQL user,
We can use the psql command to query the SQL syntax. Switch to the
Once you have created the database, you can access it:
Terminal program psql , which runs PostgreSQL interaction, allows you to interactively enter, edit, and execute SQL commands.
Create and manage databases using our existing
: Network Disk DownloadContent Profile ...This book will help you understand and use the PostgreSQL open source database system. Not only will you learn about enterprise features in versions 9.2, 9.3, and 9.4, but you'll also find that PostgreSQL is
First, installationNaturally, before you can start using PostgreSQL, you must install it. PostgreSQL is probably already installed on your node because it may be included in the release of your operating system, or the system administrator has
The idea of the Oracle paging stored procedure is the same as in SQL Server, but I have made some changes here, and the Oracle paging stored procedure looks a little different because of the differences in Oracle's syntax and rules. Laughed, laughed!
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.