您的位置:首页 > 数据库

关于PostgrepSQL

2015-07-28 20:13 357 查看
1: 指定schema
SET search_path TO schema [, schema, ...]

2:实现merge into

with  upd as (
   update sss.user_login  
     set download_channel='xiaomi'
     where uid = 75
returning *
)
  insert into xxxx

3: coalesce(null,1) 类似oracle中的nvl 函数

4. select regexp_split_to_table ('a,bc,d',',') 分隔

5. array_to_string(array_agg(id),',') 字符串拼接(8.4)


                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: