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
获取时间格式'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