---
title: "日期加减的函数"
author: "hecal"
date: "2006-12-30T18:33:00Z"
tags: []
slug: "untitled"
draft: false
lastmod: "2011-12-07T18:10:33Z"
id: 1296546
url: "https://hecal.iteye.com/blog/1296546"
---

在ORACLE中,根本不用考虑什么函数,直接用减就可以了:

select sysdate, sysdate-5 from dual;

SQL Server,Sybase:  
select DATEADD(day,-5,getdate());