database - How to do a NVL (or DECODE or CASE) statement within an Informix SE SQL query? -


IOM is very clear on its Infomix Standard engine, it does not support neither the case nor the DOCDE.

It will never happen!

So maybe someone might have an idea that I want to be equal to this:

MyTable

  manufacturing process NVL (one chor (32), BRR (32) default faucet, C word (32 ) Default Taps, D Charge (32) Default Faucet, E-CR (32) Default Faucet, F Charge (32) Default Faucet, G Chad (32) Default Faucet) Returning Chad (32); If none is empty; Alif B is not zero, then return B; Alif is not a tap, then return c; A.LIFD does not come back then d; Elife E is neither empty; Elf F. does not come back either; ELSE return; end if; End Processing;  

or - less generally:

  - @ (#) $ id: nvl_int.spl, v 1.1, 1996-2006 18: 33: 11 John Explanation $ - - NVL_Intage: Returns V1 If this is not empty, then the process of making V2 NVL_Intageer (v1 Intezere, v2 Integer DEFAULT 0) Returning Integer; Defined R.V. INTEGER; If v1 is not zero then rv = v1; ELSEEL RV = V2; End if reverse RV .; End Processing;  

The CRAR version can be used for almost any type (except for writing more than 32 letters), because it is very good to convert between SE types. SE does not support clear castings, either - it is safe to assume that SE does not have much SQL-89 in previous versions of SQL.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -