oracle 判断字符串是否日期格式

select case when to_char(TO_DATE(NVL('2015- 8', 'a'), 'yyyy-mm'),'yyyy-mm')='2015- 8' then 1 else 0 end  from dual

posted @ 2015-06-17 17:44  银杏叶儿  Views(5357)  Comments(0Edit  收藏  举报