Chuleta PostgreSQL

Micro-chuleta para sysadmins 🙂 (o nota para que no se me vuelva a olvidar como se hace :P)

Conectarse a Postgre (siendo root)

su postgres -

Conectarse a Postgre con user y pass y a una BBDD directo

psql -U NOMBRE BBDD

Ver las BBDD, conectarse a una y ver sus tablas


\l
\c BASEDEDATOS
\dt

Luego el SQL típico:

Comando de postgresql
En la web de Gentoo hay un completo manual
y como no, en la docu de PostgreSQL

Marcar como favorito enlace permanente.

Un comentario

  1. Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically tweet my newest twitter updates. I’ve been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.

Deja una respuesta