07 2023 档案

摘要:### 一、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 代码红了一大片 阅读(919) 评论(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 代码红了一大片 阅读(34) 评论(0) 推荐(0) 编辑
摘要:建议跳转地址:https://juejin.cn/post/7108728363472617486 以下内容为本人体验记载 1、安装pgsql sudo yum install -y postgresql12 2、初始化数据库 sudo /usr/pgsql-14/bin/postgresql-14 阅读全文
posted @ 2023-07-04 23:36 代码红了一大片 阅读(331) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示