The to_char function is an ODBC extension and is being translated by the client driver.
Something like this should work:
cast(cast(cast(extract( month from table.date_column) as format '99') as CHAR(2)) ||'01'||cast(cast(extract( year from table.date_column) as format '9999') as CHAR(4)) as date format'mmddyyyy')
So should
cast(cast(cast(table.date_column as format 'mmyyyy') as char(6)) as date format 'mmyyyy')
↧