declare
l_result boolean;
SELECT count(1) a,
(CASE
WHEN a < 1000 THEN
l_result := fnd_concurrent.set_completion_status('NORMAL',Complete normal.');
WHEN a >= 1000 THEN
l_result := fnd_concurrent.set_completion_status('WARNING','Complete with warnings.');
ELSE
l_result := fnd_concurrent.set_completion_status('ERROR','Complete with error.');
END ) Raise
FROM teste;
commit;
end;
/
exit;
Comentários
Postar um comentário