Subject | Re: [firebird-support] Firebird equivalent of ADDATE() GETDATE() Functions |
---|---|
Author | Martijn Tonies |
Post date | 2006-04-24T07:36:59Z |
> I need get the current date plus/minus a couple of days.days.
> For example:
> I would like to extract all fields where the expiry date is within 30
> Can someone please show example by doing this in Firebird SQL?For example:
delete from WEB_SESSION where session_start < (current_timestamp - 30)
this query deletes all rows from WEB_SESSION where the session_start
was started over 30 days ago.
Martijn Tonies
Database Workbench - development tool for Firebird and more!
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com