Do
Oracle Database 12c Release 2
você pode usar TO_NUMBER com DEFAULT ... ON CONVERSION ERROR
:SELECT TO_NUMBER('*' DEFAULT 0 ON CONVERSION ERROR) AS "Value"
FROM DUAL;
Ou
CAST
:SELECT CAST('*' AS NUMBER DEFAULT 0 ON CONVERSION ERROR) AS "Value"
FROM DUAL;
db<>demonstração de violino