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
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
相关文章推荐
- "Unable to get image data from canvas because the canvas has been tainted by cross-origin data"问题产生原
- "Unable to get image data from canvas because the canvas has been tainted by cross-origin data"问题产生原因及解决办法
- PL/SQL dev工具 使用for update-->Edit Date 时出错"These query results are not updateable,Include the ROWID to get updateable results."
- How to eliminate the compile error "conversion from 'double ' to 'float ', possible loss of data"
- Using Timer to get history values from EDNA database, an error is prompted in the page : "Sys.WebForms.PageRequestManagerTimeout
- From an inner class, "this" points to the inner object. How do I get a "this" pointer to the enclosing object?
- Failed to get the installation date from registry:Error solution
- Use Jquery to get json data from the server-side php page
- ios在真机上调试时出现“Error launching remote program: failed to get the task for process xxx"解决办法(转)
- FORM的ENCTYPE="multipart/form-data" 时request.getParameter()值为null问题的解决
- Xmanager Failed to get the installation date from the system registry
- iOS ERROR: unable to get the receiver data from the DB 解决方案
- - String cannot be resolved to a type - The method getServerName() from the type ServletRequest
- The resolution of ERROR C2662: cannot convert 'this' pointer from "const Class-Type" to "Class&"
- The content of element type "struts-config" must match "(display-name?,description?,data-sources?,fo
- The method getContextPath() from the type HttpServletRequest refers to the missing type
- Xcode4 布置Git环境Your working copy is out of date. Try pulling from the remote to get the latest change
- Xmanager Failed to get the installation date from the system registry
- iOS开发 - "Cast from pointer to smaller type 'int' loses information” 解决的方法
- Xmanager Failed to get the installation date from the system registry