2014-12-5

获取时间格式'YYMM'

select extract(year_month from '2014-12-05')

执行结果:201412

**************************************

case when用法

select a,b,

(case when a>b then a+b end) as c

 

posted @ 2014-12-05 10:19  tester-rufengboyi  阅读(89)  评论(0)    收藏  举报