Unix Technical Forum

Current in Informix = Sysdate in Oracle ???

This is a discussion on Current in Informix = Sysdate in Oracle ??? within the Informix forums, part of the Database Server Software category; --> Hello, could everyone help me please. For Informix I'm looking for a SQL-Condition how I'm using it in Oracle. ...


Go Back   Unix Technical Forum > Database Server Software > Informix

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 08:31 AM
Philipp Landolt
 
Posts: n/a
Default Current in Informix = Sysdate in Oracle ???

Hello,

could everyone help me please.
For Informix I'm looking for a SQL-Condition how I'm using it in Oracle.

When I want to calculate a timespan from now to14 days,
- in Oracle I use sysdate-14.
- how can I use the same in Informix. Current-14 wont work.

Many Thanks for Supporting me.

Philipp Landolt


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 08:31 AM
June C. Hunt
 
Posts: n/a
Default Re: Current in Informix = Sysdate in Oracle ???

"Philipp Landolt" <philipp.landolt@swisscom.com> wrote:
>
> could everyone help me please.
> For Informix I'm looking for a SQL-Condition how I'm using it in Oracle.
>
> When I want to calculate a timespan from now to14 days,
> - in Oracle I use sysdate-14.
> - how can I use the same in Informix. Current-14 wont work.


CURRENT will return a DATETIME value, TODAY will return a DATE, so depending
on the value you want returned, you have a couple of options.

If you want a DATETIME value, use:
CURRENT - 14 UNITS DAY

If you want a DATE value, use:
TODAY - 14

I hope this helps.
--
June Hunt


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:32 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com