PostgreSQL Literacy Tutorial

Download PostgreSQL at this link .

When installing, please remember the initial password you set for user postgres, and the default port number 5432, which will be used later.

PostgreSQL Literacy Tutorial

Then install the graphical management UI pgadmin, available from this link .

After the installation is complete, log in to pgadmin and change the port in the server connection to the default 5432:

PostgreSQL Literacy Tutorial

After successfully connecting to the server, create a new Table:

PostgreSQL Literacy Tutorial

PostgreSQL Literacy Tutorial

Maintain three columns for the table:

PostgreSQL Literacy Tutorial

Insert some test data using Script:

PostgreSQL Literacy Tutorial

PostgreSQL Literacy Tutorial

After the test data is inserted, query the data just inserted through SELECT *.

PostgreSQL Literacy Tutorial

The effect is the same as that of using the command line tool psql.

PostgreSQL Literacy Tutorial

Insert a piece of test data at the command line:
PostgreSQL Literacy Tutorial

Insert result:
PostgreSQL Literacy Tutorial

To get more original technical articles from Jerry, please follow the public account "Wang Zixi" or scan the QR code below:

PostgreSQL Literacy Tutorial

PostgreSQL Literacy Tutorial

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325332832&siteId=291194637