number当作字符串处理--Oracle
CREATE_D的存储格式:20230620
select subStr(CREATE_D,1,6), SUM(QUALITY) from tableXX
where subStr(CREATE_D,1,4)='2023'
GROUP BY subStr(CREATE_D,1,6)
number当作字符串处理--Oracle
CREATE_D的存储格式:20230620
select subStr(CREATE_D,1,6), SUM(QUALITY) from tableXX
where subStr(CREATE_D,1,4)='2023'
GROUP BY subStr(CREATE_D,1,6)