I want to give input from dev 6i to 11g r2 database having timestamp data type column.
I tried to insert value like this insert into table(timestamp_column) values(to_date(SYSDATE,'DD-MON-YYYY HH:MI AM'))
I also tried with to_char and to_timestamp but dev 6i does not recognise to_timestamp and does not accept to_char.
I get this error expression is of wrong type.
You do not need to use
TO_DATE,TO_TIMESTAMPwhen the value is already aDATEorTIMESTAMPand you do not want to useTO_CHARwhen the column is not a string.If you are inserting into a
TIMESTAMPcolumn then simply useSYSTIMESTAMP:You could also use
SYSDATE(but it will not have fractional seconds thatSYSTIMESTAMPhas):