I'm trying to execute a query who generates inserts statements, like that :
select
'insert into MYTABLE (
ID,
COLUMN_A,
COLUMN_B)
values (' +
ID + ',' +
COLUMN_A + ',' +
COLUMN_B
as INSERTGENERATOR from MYTABLE;
But I have this error :
ORA-01722: invalid number
01722. 00000 - "invalid number"
*Cause:
*Action:
Why ?
I tried with ||
instead of +
, and with to_char
, but it but it does not change.