MySQL NULLIF() Function String Value Example

MySQL NULLIF() Function String Value Example

Open your MySQL Query Editor then copy & paste the below code to get the value of NULLIF() MySQL Function String Value Example:

   SELECT NULLIF('Expression1','Expression2'), NULLIF('String1','String1'), NULLIF('Expression1',NULL), NULLIF('String1','Expression2');

   -- MySQL NULLIF() Function Deals With Two Expressions
   --
   -- IF    [Expression1/Value1] equals to [Expression2/Value2] NULLIF() Function returns NULL
   -- ELSE  NULLIF() Function returns [Expression1/Value1]
      -- is comment in MySQL
      -- in fact it is comment in MSSQL and Oracle as well
   

MySQL NULLIF() Function String Value Example - Result in MySQL Query Editor

 

Related Tutorial Examples

  1. MySQL NULLIF() Nested Function Example
  2. MySQL NULLIF() Function Datetime Value Example
  3. MySQL NULLIF() Function Number Value Example
  4. MySQL NULLIF() Function Boolean Value Example
  5. MySQL NULLIF() Function NULL Value Example
  6. MySQL IFNULL() Function Datetime Example
  7. MSSQL PRINT Like Function in MySQL Example
  8. How to Find MySQL Stored Procedure or Function Information
  9. MySQL Sub-Query: INSERT INTO SELECT *... Example
  10. MySQL Sub-Query: CREATE TABLE SELECT... Example

No comments:

Post a Comment

leave your comments here..