UPSERT操作更新或在表中插入一行,具体取决于表是否已有一行与数据匹配:
if table t has a row exists that has key X: update t set mystuff... where mykey=X else insert into t mystuff...
由于Oracle没有特定的UPSERT语句,最好的方法是什么?
sql oracle merge upsert
merge ×1
oracle ×1
sql ×1
upsert ×1