select extract(year from 日期字段) as 年, extract(month from 日期字段)) as 月 extract(day from 日期字段)) as 天 from 数据表 主要用到extract()函数,简单明了,非常好用。