How create a table inside the selected database in PostgreSQL?
But this does not add the mytable inside the mydb. How to add the table inside the database mydb?


You have to connect to the database mydb,

psql -d mydb


Then run the command