If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Exits a function INFORMIX SE like ISNULL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-26-03, 10:05
tabacaru tabacaru is offline
Registered User
 
Join Date: Jan 2003
Posts: 9
Exits a function INFORMIX SE like ISNULL

Is there any function, or a method wich is like ISNULL of MS-SQL.
I need that the result of a SELECT does not contain a NULL value.
Something like this:

Select Isnull(cod,' ') As Cod from mytable

Thanks a lot
Tabacaru Teodor
Ragusa,Italy
Reply With Quote
  #2 (permalink)  
Old 04-02-03, 05:11
Roelwe Roelwe is offline
Registered User
 
Join Date: Aug 2002
Location: Belgium
Posts: 534
You can specify this in the where clause:
select blah
from table
where blah is not null;
__________________
rws
Reply With Quote
  #3 (permalink)  
Old 04-02-03, 05:15
Roelwe Roelwe is offline
Registered User
 
Join Date: Aug 2002
Location: Belgium
Posts: 534
Informix has an NVL function that is able to do the following:

SELECT name, NVL(address, "address is unknown")
FROM student

In your case it would be:

Select NVL(cod,' ') As Cod
from mytable
__________________
rws
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On