小编Kan*_*thy的帖子

postgres 查询是否有最大长度限制?

我们正在构建的应用程序可能会执行相当大的插入查询。我的 postgres 查询只能有一定数量的字符是否有限制?

postgresql

36
推荐指数
1
解决办法
3万
查看次数

在 Postgres UPSERT 中有条件地设置值

我们有一个UPSERT功能通过on conflict do set. 如何在 set 语句中有条件地设置值,例如

if(excluded.col1 is null) col1=table.col1 else col1=excluded.col1
Run Code Online (Sandbox Code Playgroud)

我们使用的是 Postgres 9.5。

postgresql upsert postgresql-9.5

2
推荐指数
1
解决办法
2384
查看次数

标签 统计

postgresql ×2

postgresql-9.5 ×1

upsert ×1