Did there have a statement like Oracle’s SQL%FOUND in PostgreSQL? While, I want to judge the value if the SQL statement update or not.
The code just like below in PostgreSQL:
INSERT INTO TABLE_NAME
SELECT A,B
FROM TABLE_NAME_2
WHERE A>2;
IF SQL%FOUND THEN ---error in PostgreSQL
C = 1;
ELSE
C = 0;
END IF;
Yes, PostgreSQL has
FOUNDstatement. Details here.Example: