Pgsql

Iš Žinynas.
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Connect to database:

\c database_name

Show tables

\dt

Select:

SELECT * FROM users;

Delete:

DELETE FROM lentele WHERE stulpelis = 1;

Remote login

psql -h ip.ad.res -p 5432 -U user -d database