oracle 查询月份

①:select substr(to_char(sysdate,'yyyy-mm-dd'),6,2) from dual;
②:select to_char(sysdate,'MM') from dual;
posted @ 2016-10-19 11:55  对我有点小自信  阅读(1144)  评论(0编辑  收藏  举报