SELECT
to_char(dateTime, 'YYYY-MM-DD' ) AS time
FROM
generate_series( to_timestamp ( '2019-11-01', 'YYYY-MM-DD' ), to_timestamp (to_char(sysdate), 'YYYY-MM-DD' ), '1 days' ) AS dateTime
GROUP BY
time ORDER BY time desc
Oracle查询指定日期到今天共有多少天,根据天分组
最新推荐文章于 2023-04-21 09:58:32 发布