【发布时间】:2012-07-03 03:40:55
【问题描述】:
你们能否给我一个关于如何在以下情况下进行的建议:
Read table 2 column 1
if value says the record exists in table 1
update table 1 record with table 2 record details
else(value says the record does not exist in table 1)
insert table 1 record with table 2 record details
我是 Oracle SQL 的初学者,如果有更好的方法,请告诉我..我正在考虑使用游标来解决这个问题..
【问题讨论】:
-
你能再解释一下吗?为什么不能对照表 1 检查?