I am trying to execute a simple statement and i got an error while executing.
begin
dbms_output.put_line('Addition: '||4+2);
end;
Error: ORA-06502: PL/SQL: numeric or value error: character to number conversion error ORA-06512: at line 2
But when i executed with * operator, it worked fine.
begin
dbms_output.put_line('Addition: '||4*2);
end;
Does anyone know the reason behind it?
dbms_output.put_line('Addition: '||(4+2));
– Vishwanath Dalvi