oracle - Conversion of 01 to jan , 02 to feb including year in the field -
I have a field that has 201402, 201404, here I want to change from 02 to February and 04 April. Is it possible to do that? There are entries for all the months in this area Please help.
Within the Oracle you can do a lot below (with its code TO_DATE (. ..) if it is a string or changes the entire TO_DATE with your field, if it already has a data type DATE):
Again SELECT TO_CHAR (TO_DATE ('201402', 'YYYYMM'), 'YYYY-MONTH'); SELECT TO_CHAR (TO_DATE ('201404', 'YYYYMM'), 'YYYY-MONTH');
Comments
Post a Comment