MySQL IFNULL() Function Number Value Example
Open your MySQL Query Editor then copy & paste the below code to get the value of IFNULL() MySQL Number Value Example:
-- SELECT IFNULL(1,100), IFNULL(0,100), IFNULL(-1,100), IFNULL(NULL,100), IFNULL(0/0<0,100), IFNULL(0/0>0,100); -- -- MySQL IFNULL() Function Deals With Two Expressions -- -- if [Expression1/Value1] evaluates to NULL, returns [Expression2/Value2] -- else [Expression1/Value1]
-- is comment in MySQL
-- in fact it is comment in MSSQL and Oracle as well
MySQL IFNULL() Function Number Value Example - Result in MySQL Query Editor
Related Tutorial Examples
- MySQL IFNULL() Function Datetime Example
- MySQL IFNULL() Nested Function Example
- MySQL IFNULL() Function String Example
- MySQL IFNULL() Function Boolean Example
- MySQL IFNULL() Function NULL Value Example
- MySQL NULLIF() Function NULL Value Example
- How To Find MySQL SERVER VERSION Information
- MySQL Stored Procedure: INSERT INTO SELECT... Example
- MySQL Stored Procedure: CREATE TABLE SELECT... Example
- Creating Database(s) using SQL Command MySQL Example

No comments:
Post a Comment
leave your comments here..