PostgreSQL

sudo su - postgres psql -d template1 -U postgres template1=# \c databasename You are now connected to database "databasename" as user "postgres". databasename=# \dt databasename=# \dt databasename=# SELECT * FROM res_users;