create_time是表字段 timestamp类型,按照年查找:
select substr(char(create_time),1,10) from CMBC_BUDGET_BUSINESS_DETAILS where substr(char(create_time),1,4) = '2018'
create_time是表字段 timestamp类型,按照年查找:
select substr(char(create_time),1,10) from CMBC_BUDGET_BUSINESS_DETAILS where substr(char(create_time),1,4) = '2018'
本文标题:DB2日期查询
本文链接:https://www.haomeiwen.com/subject/pzxlqqtx.html
网友评论