Categories




PreviousNext
Mysql ISNULL function    
 Send mail Views:566
Belongs to : Mysql
Facebook Bookmarkbookmark this page Digg Bookmark Delicious BookmarkStumbleupon Bookmarkshare with orkut Post to Google Buzz

ISNULL():

Syntax:ISNULL(expression);

If expr is NULL, ISNULL() returns 1, otherwise it returns 0.

mysql> SELECT ISNULL(1+1);
-> 0
mysql> SELECT ISNULL(1/0);
-> 1


ISNULL() can be used instead of = to test whether a value is NULL.


SELECT ISNULL(field,0) FROM TABLE


If the field is not null, returns its value; otherwise, 0.


Pictures and Videos
Online Calculators
embed code


By - Rekha, On - 2010-01-28
Send This
PreviousNext

User Comments


Add NEW Feedback:

Name :     Email :

 Server Monitoring Web hosting by Hiox India Privacy Policy Terms and Conditions