- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How MySQL evaluates an empty hexadecimal value?
Actually, MySQL evaluates an empty hexadecimal value to a zero-length binary string. It can be demonstrated as follows −
mysql> Select CHARSET(X''); +--------------+ | CHARSET(X'') | +--------------+ | binary | +--------------+ 1 row in set (0.00 sec)
The above result set shows that the empty hexadecimal value is a binary string. And the result set below shows that it is of length 0.
mysql> Select LENGTH(X''); +-------------+ | LENGTH(X'') | +-------------+ | 0 | +-------------+ 1 row in set (0.00 sec)
- Related Articles
- What MySQL returns if we convert an empty hexadecimal value to a number?
- How MySQL evaluates if I will use an expression within SUM() function?
- How to create an empty VIEW in MySQL?
- How to set default value for empty row in MySQL?
- How MySQL evaluates the statement written on different lines?
- How to select an empty result set in MySQL?
- What is the default type of a hexadecimal value in MySQL?
- How MySQL evaluates if I store date along with time value in a column having DATE data type?
- How MySQL stored function evaluates if it got NULL value while using the dynamic values from a table?
- How to check an empty table already in a MySQL database?
- How MySQL evaluates if we export the data to CSV file from a table which contains a NULL value(s)?
- How MySQL SUM() function evaluates if the column having NULL values too?
- How MySQL evaluates when I use a conditional expression within SUM() function?
- Set a custom value for NULL or empty values in MySQL
- Convert Hexadecimal value String to ASCII value String in C++

Advertisements