PostgreSQL 教程
地址:https://www.runoob.com/postgresql/postgresql-tutorial.html
1. psql -h localhost -p 5432 -U sps sps_db
2.查看数据库 \l;
3.查看表结构 \d tablename;
4.如果你想要数据库的列表
SELECT datname FROM pg_database WHERE datistemplate = false;
5.如果你想要所有数据库的当前pg安装表的列表
SELECT table_schema,table_name FROM information_schema.tables ORDER BY table_schema,table_name;