When storing authenticity values in MySQL, is type tinyint(1) better than type bit(1) field?

Asked 1 years ago, Updated 1 years ago, 35 views

1 Answers

In MySQL, TRUE as literal, FALSE is treated as 10 when parsing.Therefore, it is exactly the same as specifying 10.

BOOLEAN as a type is similarly treated as TINYINT(1) during parsing.BOOLEAN and TINYINT(1) are exactly the same

I don't know about this.


2022-09-29 22:21

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.