psql -h localhost -p 5432 -U <user> -d <database>
\list
or \c
\connect dbname
or \c db
\dt
docker exec -it <container_id> psql -U <user> -d <db>
SELECT * FROM pg_catalog.pg_tables;
select * from pg_catalog.pg_namespace;
DROP SCHEMA property CASCADE; CREATE SCHEMA property;
SELECT table_name, column_name, data_type, is_nullable FROM information_schema.columns WHERE table_name = '' order by column_name;
SELECT con.* FROM pg_catalog.pg_constraint con INNER JOIN pg_catalog.pg_class rel ON rel.oid = con.conrelid INNER JOIN pg_catalog.pg_namespace nsp ON nsp.oid = connamespace WHERE rel.relname = '';
create database <db>;
mysql -udb_name -ppwd
UPDATE CONFIGURATION_ADMINISTRATION_DATABASECHANGELOGLOCK
SET LOCKED=0, LOCKGRANTED=null, LOCKEDBY=null ;
DROP database db_name;
CREATE database db_name;
use db_name;
show tables;