您的位置:首页 > 其它

To get the "month" from a DATE datatype

2011-12-23 11:28 591 查看
To get the "month" from a DATE datatype you simply:

to_char( dt_column, 'mm' ) -- returns 01..12

to_char( dt_column, 'MON' ) -- returns JAN, FEB, ... DEC in your language

to_char( dt_column, 'Month' ) -- returns January, ... December in your language
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐