246 B
Executable File
246 B
Executable File
select `pg_terminate_backend(pid)` from `pg_stat_activity` where `datname`='testdb' and `pid`<>`pg_backend_pid();`
==上面sql表示的是关闭数据库testdb的活动连接,接下来就可以用==
drop database `testdb;`