Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL/MariaDB SET data type #1256

Closed
woongzeyi opened this issue May 31, 2021 · 0 comments · Fixed by #2213
Closed

MySQL/MariaDB SET data type #1256

woongzeyi opened this issue May 31, 2021 · 0 comments · Fixed by #2213

Comments

@woongzeyi
Copy link

There is a datatype which is called SET in MySQL and MariaDB. It is similar to ENUM datatype but is used to store a list of enums instead of a single enum.

Difference between ENUM and SET

Defining

  • ENUM: permission ENUM('ADMIN', 'MANAGE, 'COMMUNICATE'')
  • SET: permission SET('ADMIN', 'MANAGE, 'COMMUNICATE'')

Usage

  • ENUM: INSERT INTO roles(permission) VALUE ('ADMIN')
  • SET: INSERT INTO roles(permission) VALUE ('ADMIN,MANAGE,COMMUNICATE')
    (Insert comma between each value)

Is there any implementation of it in Exposed? If no, is there anyway to self implement it?

@bog-walk bog-walk linked a pull request Aug 23, 2024 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant