oracle - Change the data format -
i use script in oracle select @ moment date :
cursor sauron select toutdoux_id, type_of_action, user_id, profile_name, start_date, end_date, platform, comments, perm_flag, active_flag uam.tout_doux
but format (25-jul-2013) not 1 expected (2013/07/25).
how can select date right format ?
use oracle to_char
function date-time format elements. in case want format string yyyy/mm/dd
:
cursor sauron select toutdoux_id, type_of_action, user_id, profile_name, to_char(start_date, 'yyyy/mm/dd') sdate, to_char(end_date, 'yyyy/mm/dd') edate, platform, comments, perm_flag, active_flag uam.tout_doux
Comments
Post a Comment