Generate standards-compliant MySQL ENUM and SET column definitions, CREATE TABLE schemas, and ALTER TABLE statements with character escaping, default value selection, and member limit validation.
Real-time verification of member count limits, duplicate items, trailing spaces, and character encoding safety.
ALGORITHM=INSTANT, modifying the table without any downtime or table rebuild.
| Feature | MySQL ENUM | MySQL SET | Foreign Key Lookup Table | VARCHAR(N) + App Check |
|---|---|---|---|---|
| Permitted Values | Exactly 1 choice from list | 0 to 64 choices simultaneously | Dynamic rows in parent table | Any string conforming to app logic |
| Internal Storage | 1 or 2 bytes integer | 1 to 8 bytes bitmask | Foreign key INT (4B) or BIGINT (8B) | Length byte + actual characters |
| Storage Limit | Up to 65,535 distinct items | Strictly 64 distinct items | Unlimited (table rows) | Up to 65,535 bytes per row |
| Sorting (ORDER BY) | Sorted by internal index order | Sorted by bitmask integer value | Sorted by JOIN column alphabetically | Sorted alphabetically by collation |
| Adding New Member | Instant (at end in MySQL 8+) | Requires table rebuild | Instant (INSERT INTO lookup_table) | Instant (application code update) |
| Best Used For | Static lifecycle states (order, user role) | Multi-flag capabilities & preferences | Frequently changing or user-edited lists | Free-form or highly dynamic strings |
Select between ENUM (single choice) and SET (multiple choices), or load one of 10 real-world templates.
Add, reorder, sort, or paste bulk values from multiline lists, CSVs, or JSON arrays with case transforms.
Set Table & Column names, NULL/NOT NULL, default value, charset collation, comments, and column position.
Export Column Definitions, full CREATE TABLE schemas, or ALTER TABLE migrations to clipboard or .sql file.