日期时间函数

来源:互联网 发布:约会吧软件怎么样 编辑:程序博客网 时间:2024/06/04 01:23

如果是变量的话可以用这种方式 

EXTRACT(MONTH from cast(t_ls_outdate as timestamp))