First Connect with the Database using following command
\c database_name
And you will see this message - You are now connected to database database_name. And them run the following command
SELECT * FROM table_name;
In database_name and table_name just update with your database and table name