1 BEGIN 2 UPDATE AAA_TEST SET VALUE=‘AAAA‘ WHERE ID=1; 3 IF SQL%NOTFOUND THEN 4 INSERT INTO AAA_TEST(ID,VALUE)VALUES(1,‘AAAA‘); 5 END IF; 6 END;
orcle 修改一条记录,不存在刚插入
原文:http://www.cnblogs.com/skeaylcm/p/6561426.html