Jump to content

Recommended Posts

Posted

first, I don't know the correct section to post. :P

 

about item identify value, it's only contains 0 and 1, or there is something else by default?

why don't use enum for it? now is using smallint:6

 

if identify only 0 or 1 is using smallint:6, why refine that 0~20 is tinyint:3? :P

 

Integer Types (Exact Value)

 

MySQL-NumericTypes.png

  • 2 months later...
Posted (edited)

I think you can use tinyint(1) or bool type.

enum is a string type data with a value

For example, ENUM('a', 'b', 'c')

a's value is 1, b's value is 2, and c's value is 3

so it's not suitable for use enum here.

Edited by Fanny
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...