随笔分类 -  PostgreSQL

PostgreSQL的用法及实例
摘要:上手: 自顶向下 with recursive tree AS ( select dep.id,dep.name,dep.parent_id from department dep where dep.id = 1 union all select dep.id,dep.name,dep.paren 阅读全文
posted @ 2021-02-25 16:25 星空物语之韵 阅读(321) 评论(0) 推荐(0) 编辑
摘要:any 的使用 和in 的使用: SELECT tt.ID FROM uaa_department tt WHERE tt.PATH LIKE ANY ( SELECT '%' || rr.deparment_id || '%' FROM uaa_employee_leader rr WHERE r 阅读全文
posted @ 2021-01-22 17:10 星空物语之韵 阅读(539) 评论(0) 推荐(0) 编辑
摘要:一、字符串函数 1、函数:string || string(string || non-string) 说明:字符串(或与非字符串)连接 示例: 2、函数:char_length(string) 说明:计算字符串中字符个数 示例: 3、函数:overlay(string placing string 阅读全文
posted @ 2021-01-13 15:31 星空物语之韵 阅读(1035) 评论(0) 推荐(0) 编辑

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