Collections:
Expressions with NULL Values in MySQL
What Happens If NULL Values Are Involved in Expressions in MySQL?
✍: FYIcenter.com
If NULL values are used in expressions, the resulting values will be NULL values. In other words:
The tutorial exercise shows you some interesting examples:
SELECT NULL + NULL FROM DUAL; NULL SELECT NULL + 7 FROM DUAL; NULL SELECT NULL * 7 FROM DUAL; NULL SELECT NULL = NULL FROM DUAL; NULL SELECT 0 < NULL FROM DUAL; NULL SELECT '' > NULL FROM DUAL; NULL SELECT NULL AND TRUE FROM DUAL; NULL SELECT NULL OR TRUE FROM DUAL; 1 -- This is contradicting against the rules!
⇒ Converting Numeric Values to Character Strings in MySQL
2018-03-28, 2029🔥, 0💬
Popular Posts:
What Are Date and Time Functions in MySQL? MySQL offers a number of functions for date and time valu...
What Is an Oracle Instance in Oracle? Every running Oracle database is associated with an Oracle ins...
How To Replace Given Values with NULL using NULLIF() in SQL Server Transact-SQL? Sometime you want t...
How AdventureWorksLT tables are related in SQL Server? There are 12 user tables defined in Adventure...
How to download Microsoft SQL Server 2005 Express Edition in SQL Server? Microsoft SQL Server 2005 E...