Good day,
within sqlcl I will like to run a query that build a insert statement. Such as:
SELECT /*insert*/* FROM TABLE;
but each date value is returned as to_timestamp('date', 'format')
and I want to get to_date('date', 'format')
instead.
What do I need to set to make this thing happen?
Thanks!!
Editted:
For Example... I have the table datesaving with two columns id, and date. If I run this query
SELECT /*insert*/ id,date FROM datesaving ;
I get
Insert into DATASAVING (ID, DATE) values (1,to_timestamp('2016-02-15 11:05:07','RRRR-MM-DD HH24:MI:SS'));
and I want to get this instead
Insert into DATASAVING (ID, DATE) values (1,to_date('2016-02-15 11:05:07','RRRR-MM-DD HH24:MI:SS'));
I know i can change de nls_format, but I dont know hot to change this.