[Tutorial] Abrir y explorar un .pgsql
AlbertoCoding edited this page Dec 8, 2018
·
7 revisions
Para poder abrir desde la shell el fichero dvdrental.pgsql:
$ sudo apt-get install postgresql-client-common postgresql postgresql-contrib
$ sudo su - postgres
$ createdb dvdrental
$ logout
$ psql -U dvdrental < dvdrental.pgsql
Para explorarlo ponemos:
$ psql dvdrental
\dt