Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> How to get the recordcount?
Hello,
If I declare a cursor,
DECLARE
CURSOR C1 IS SELECT * FROM EMP WHERE ......; BEGIN OPEN C1; :::::::::
And how to use SQL%NOTFOUND?
Is it like this?
BEGIN
SELECT * FROM EMP WHERE.... IF SQL%NOTFOUND THEN INSERT INTO EMP........ ELSE UPDATE EMP...... END IF;
![]() |
![]() |