gpt4 book ai didi

postgresql - 在 postgresql 上插入 INTO where 子句

转载 作者:行者123 更新时间:2023-11-29 13:06:14 25 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
Insert, on duplicate update (postgresql)

这在 PostgreSQL 上是否可行:

insert record, if the record doesn't exists
else update existing record

假设记录将被插入到这个表结构中:

[userid - unique] [count]

如果有一条记录,我将只更新计数,如果不存在则插入

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com