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;
时间: 2024-12-29 09:02:38
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;