Tinyint (1) blank

Source: Internet
Author: User
Tinyint (1) blank? Tinyint (1) is used to represent the bool value. for this, I have a lot of points I don't understand. I would like to ask you if .1.int (M) doesn't mean it works with zerofill? Here there is no zerofill.2.zerofill (1), which indicates 19 numbers ranging from-9 to + 9. how is it related to bool? Tinyint (1) blank?
Tinyint (1) is used to represent the bool value,
I have many questions about this.

1. does int (M) mean that it works with zerofill? There is no zerofill.

2. zerofill (1) indicates a number ranging from-9 to + 9. how is it related to bool?

Share:


------ Solution --------------------
In the manual
· TINYINT [(M)] [UNSIGNED] [ZEROFILL]
A small integer. The signed range is-128 to 127. The unsigned range is 0 to 255.

· BOOL, BOOLEAN
Is a synonym for TINYINT (1. The zero value is considered false. The non-zero value is true.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.