March 9, 2005 at 11:15 am
I am connecting to an AS400 as a linked server and querying the tables using the OPENQUERY method. However, the T-SQL ISNULL function is not available. Is there a "DB2 equivalent" for SQL Server's IsNull() function?
March 9, 2005 at 11:36 am
NULLIF()
Google group search on the comp.databases.ibm-db2 newsgroup will answer DB2 stuff real fast.
March 9, 2005 at 12:19 pm
Thanks!
March 10, 2005 at 5:27 am
This is also a good reference for DB2 SQL that I keep bookmarked.
https://aurora.vcu.edu/db2help/db2s0/frame3.htm
Mark
March 10, 2005 at 7:38 am
If I'm not mistaken, you want COALESCE as equvivalent to ISNULL, not NULLIF
NULLIF does not do the same thing as ISNULL.
/Kenneth
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy