I write a script on PL / SQL with the condition:
if ((select * from table1 where quant>1000) is not null) then ... else RAISE error$e; end if;
When compiling produces the following error:
PLS-00103: Encountered the symbol "SELECT" when looking for one of the following:
Is it possible to substitute a query directly into a condition, and not create a new variable?
is not null
gives a boolean value, if that - Specter