poniedziałek, 7 sierpnia 2017

Postgres - usuwanie wszystkich baz

select 'drop database '||datname||';'
from pg_database
where datistemplate=false
and datname != 'postgres'
order by 1
Podziel się:

0 komentarze:

Prześlij komentarz