简体   繁体   English

布尔不适用于Toad MySql

[英]Boolean not available for Toad MySql

在此处输入图片说明

While designing the schema of my application, I noticed that there is no Boolean data-type option in the drop-down of Toad for MySQL . 在设计应用程序的架构时,我注意到Toad for MySQL的下拉列表中没有Boolean数据类型选项。

Is there any other way to take Boolean data-type or Toad doesn't have a Boolean data-type ? 还有其他方法可以获取Boolean数据类型,或者Toad没有Boolean数据类型?

Note: I am using Toad for MySQL version 6.3.0.642. 注意:我正在使用Toad for MySQL版本6.3.0.642。

Boolean is not in the pre compiled list in toad . Boolean值不在toad的预编译列表中。

But it allows you to manually input data type boolean for the columns. 但是,它允许您手动为列输入数据类型boolean
When used such data type, toad converts it into tinyint(1) and builds the table. 当使用此类数据类型时, toad会将其转换为tinyint(1)并构建表。

Alternatively you can use BIT data type to store '1' or '0' values. 或者,您可以使用BIT数据类型存储'1''0'值。 You can retrieve bit type column and directly compare as if it is a boolean . 您可以检索bit类型列并直接进行比较,就好像它是boolean

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM