I have this Timestamp field which looks like this: 2015-08-24 16:24:28.763915 and I want to get only the date and insert to date field
I tried this:
select
TO_DATE(CAST (CON1.AF_UPDATE_DT AS VARCHAR(10)), DD/MM/YYYY)
FROM AF_EMR_MEM_CONT CON1
but i get this error
00904. 00000 - "%s: invalid identifier"
If I try to do this sql:
select AF_UPDATE_DT
TO_DATE(CAST (CON1.AF_UPDATE_DT AS VARCHAR(10)), YYYY/MM/DD)
FROM AF_EMR_MEM_CONT CON1
I get the error:
00923. 00000 - "FROM keyword not found where expected"