select last_day(to_date('1992-10','yyyy-mm')) from dual;
输出:1992/10/31
本文介绍了一个简单的 SQL 查询示例,用于获取指定月份的最后一天。通过使用 Oracle 的 to_date 和 last_day 函数组合,可以轻松得到任何给定日期所在月份的最后一日。
select last_day(to_date('1992-10','yyyy-mm')) from dual;
输出:1992/10/31
转载于:https://www.cnblogs.com/shenzhichipingguo/p/8716183.html
2468

被折叠的 条评论
为什么被折叠?