check for row count > 0
66718Aug 27 2003 — edited Aug 28 2003Does anyone know how to do the following correctly?
If (select count(*) from bb_charge_element = 0)
then
PROMPT Error selecting data - update Aborted;
else
"Perform large chunk of code"
end if;
Obviously you can't run a count(*) like this in PL/SQL. Isn't there some method to count if rows in a table exist?