Summary of USE commands for postgres database command line client Psql

Source: Internet
Author: User
Tags psql postgres database

1. Switch to Postgres user;

2. Enter: Psql, enter the client psql of PostgreSQL;

3.\l View all the current databases;

4.psql Database1 connected to database1 this database;

5. \dt View all the tables of the currently connected database (DATABASE1);

6. \d Table1 View the table structure of table table1;

Also: Modify a user's password in ubuntu:

1. Switch to the root account;

2. passwd account name;

3. Follow the instructions, enter a new password, complete the modification;

Summary of USE commands for postgres database command line client Psql

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.