Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

to_char function in stored procedure - response (1) by Fred

$
0
0
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')

Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>