
- Learn MySQL
- MySQL - Home
- MySQL - Introduction
- MySQL - Installation
- MySQL - Administration
- MySQL - PHP Syntax
- MySQL - Connection
- MySQL - Create Database
- MySQL - Drop Database
- MySQL - Select Database
- MySQL - Data Types
- MySQL - Create Tables
- MySQL - Drop Tables
- MySQL - Insert Query
- MySQL - Select Query
- MySQL - Where Clause
- MySQL - Update Query
- MySQL - Delete Query
- MySQL - Like Clause
- MySQL - Sorting Results
- MySQL - Using Join
- MySQL - NULL Values
- MySQL - Regexps
- MySQL - Transactions
- MySQL - Alter Command
- MySQL - Indexes
- MySQL - Temporary Tables
- MySQL - Clone Tables
- MySQL - Database Info
- MySQL - Using Sequences
- MySQL - Handling Duplicates
- MySQL - SQL Injection
- MySQL - Database Export
- MySQL - Database Import
What are the limitations of MySQL ENUMs?
Following are the limitations of MySQL ENUMs −
Enumeration value cannot be an expression
we cannot use expressions as enumeration members even one that evaluates to a string value.
Example
For example, we can use even CONCAT function which leads to the evaluation of a string.
The following query will not work −
mysql> create table limit_enum(number ENUM('one', 'two', CONCAT('t','wo'));
Cannot employ a user variable as enumeration member
Another limitation is that we cannot use a user variable as enumeration member. Hence the following query will not work −
mysql> SET @mynumber = 'two'; Query OK, 0 rows affected (0.04 sec) mysql> Create table limit_enum(number ENUM('one', @mynumber, 'three'));
- Related Articles
- What are the limitations of using MySQL views?
- What are the limitations of JavaScript?
- What are the limitations of RPA?
- What are the limitations of data mining?
- What are the Limitations of Ratio Analysis?
- What Are the Limitations of Digital Marketing?
- What Are The Major Limitations Of Blockchain Technology?
- What are the limitations of Rutherford’s model of the atom?
- What are the advantages and limitations of JDBC PreparedStatement?
- What are the limitations of array in C language?
- What are the limitations of J.J. Thomson’s model of the atom?
- What are the limitations of Gordon's Growth Model?
- What are the limitations of Walter’s Theory on Dividend Policy?
- What are importance and limitations of financial ratios?
- What are the limitations of using OUTER JOIN on a DB2 table?

Advertisements