Sql实现时间拼接
Sql实现时间拼接
实现语句
SELECT
SUM( e1.weight ),
e1.create_date
FROM
eh_collect_transport_k e1
-- where to_char(e1.create_date,'yyyy-mm-dd') = '${MONTHS}'|| '-' || '${DAYS}'
WHERE
to_char( e1.create_date, 'yyyy-mm-dd' ) = '2021-06' || '-' || '02'
GROUP BY
e1.create_date