sql - 获取日期中的年

使用 YEAR函数,

--day为rain表中的字段.
select YEAR(day) from t_rain

 

posted @ 2015-01-06 15:04  wonkju  阅读(2631)  评论(0编辑  收藏  举报