ORACLE-postgreSQL
文章平均质量分 50
喔就是哦噢喔
菜鸡互啄
展开
-
离线下载安装postgresql12/13/14/15.
离线安装pg库原创 2024-02-04 23:18:08 · 1201 阅读 · 0 评论 -
(二) 行转列regexp_split_to_table()与列转行string_agg()—以及postgreSQL中使用特例
1.行转列regexp_split_to_table(input_string, separator)input_string待转的字符串separator是分隔符例子:select regexp_split_to_table(‘aa,bb’, ‘,’) from dual结果:postgreSQL注意:在post库中使用‘+’来分割不行,所以一个解决办法是用replace函数用’,‘来代替‘+’,再用’,'来分割select regexp_split_to_table(replace(原创 2021-06-23 12:21:10 · 1340 阅读 · 0 评论 -
(一) oracle:decode()函数<-->postpresql:case when函数
Oracledecode():select decode(student_name,‘乱七八糟’,null,student_name) from student_info等价于Postgresql:case when:select case when student_name= ‘乱七八糟’ then null else student_name end from student_info附:decode(A,1,11,a,aa,bb)相当于case when A=1 then 11..原创 2021-06-23 10:56:11 · 250 阅读 · 0 评论