0

I was using the data type enum() but I got this error in mysql workbench enter image description here

4
  • 1
    Enum needs a list of values, how exactly are you passing it Commented Aug 22, 2018 at 23:15
  • Did you try to define an ENUM column with no elements? You need at least one. Commented Aug 22, 2018 at 23:17
  • cuz I am doing this in the setting not coding. there are 2 ways to set up enum(),one is by coding eg: Status ENUM('Yes','No) NOT NULL. I am doing it in the second way by using the settings. is there a way I can do it in the settings ? Commented Aug 22, 2018 at 23:26
  • 1
    Can you edit your question to include the exact statement you're running? Also remember that text, not screenshots, is the best way to represent textual data. Images can't be searched, copy-pasted or run as code. Commented Aug 23, 2018 at 2:25

1 Answer 1

6

Each value must be quoted between single quotes, and they must be separated with commas. For example:

ENUM('Value1','Value2','Value3')
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.