摘要: ### 一、PGsql 数据库递归查询 ```sql with recursive ag_tree as (select id, title, type, parent_id from agreements where type = 'test' union all select a.id, a.t 阅读全文
posted @ 2023-07-21 15:03 代码红了一大片 阅读(794) 评论(0) 推荐(0) 编辑
摘要: ### 一、可连接,有执行权限的数据库连接后 ```sql -- 备份 select pg_terminate_backend(pg_stat_activity.pid) from pg_stat_activity where datname = 'your_table'; drop databas 阅读全文
posted @ 2023-07-21 14:53 代码红了一大片 阅读(18) 评论(0) 推荐(0) 编辑