Unix Technical Forum

Re: IF Statement

This is a discussion on Re: IF Statement within the Informix forums, part of the Database Server Software category; --> June C. Hunt wrote: > Nicolas Mainczyk wrote: > >>Hi, >> >>I'm newbie on Informix RDBMS. >> >>I would ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 07:27 AM
Mark D. Stock
 
Posts: n/a
Default Re: IF Statement


June C. Hunt wrote:

> Nicolas Mainczyk wrote:
>
>>Hi,
>>
>>I'm newbie on Informix RDBMS.
>>
>>I would like to know the equivalent syntax for the following mysql query:
>>
>>SELECT if(condition1,operation1,0),if(condition2,operatio n1,0),etc... FROM
>>table WHERE whereclause

>
>
> You might try either the CASE expression or the DECODE function. You didn't
> say which version of Informix that you are using, so I might be leading you
> on a bit of a goose chase with one or both of those. I'm not positive how
> long these have been available,


Version 7.31, IIRC.

Cheers,
--
Mark.

+----------------------------------------------------------+-----------+
| Mark D. Stock mailto:mdstock@MydasSolutions.com |//////// /|
| http://MydasSolutions.com |///// / //|
| +-----------------------------------+//// / ///|
| |We value your comments, which have |/// / ////|
| |been recorded and automatically |// / /////|
| |emailed back to us for our records.|/ ////////|
+----------------------+-----------------------------------+-----------+


sending to informix-list
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:34 AM.


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