I have a stored procedure that contains the following:
V_DATACONVERTIDA varchar2(100) := TO_DATE('27/10/1994 23:59:59', 'DD/MM/YYYY HH24:MI:SS.SSSSS');
It works fine, but the problem is I gotta make that date a variable. So I created
V_DATAEXPIRACAO VARCHAR2(100) := p__formdata;
being p__formdata (varchar2) a parameter from the SP.
When I made that change, though, I got the following error:
ORA-01858: a non-numeric character was found where a numeric was expected