[英]True/False datatype in MySQL Workbench
Hi I would like to know what datatype allows me to use the values: true or false in my table. 嗨,我想知道什么数据类型允许我使用以下值:表中的true或false。 I can choose BOOLEAN (or TINYINT) and use the values 1 and 0 but was just wondering about the values "true" and "false"
我可以选择BOOLEAN(或TINYINT)并使用值1和0,但只是想知道值“ true”和“ false”
9.1.6 Boolean Literals
9.1.6布尔文字
The constants
TRUE
andFALSE
evaluate to 1 and 0, respectively.常数
TRUE
和FALSE
取值为1和0。 The constant names can be written in any lettercase.常量名称可以用任何字母大写。
Reference: https://dev.mysql.com/doc/refman/5.7/en/boolean-literals.html 参考: https : //dev.mysql.com/doc/refman/5.7/en/boolean-literals.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.