专业编程教程与实战项目分享平台

网站首页 > 技术文章 正文

oracle date_sub函数用法(oracle date类型的日期应该怎么写)

ins518 2024-11-16 21:04:44 技术文章 8 ℃ 0 评论


名词解释:

date_sub(current_date,N) 取当前日期N天前的数据

select * from a where ymd between date_sub(current_date,10) and  date_sub(current_date,3) ;

上述sql表示查询当前日期前3天至前十天的数据。

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表