MySQL BOOL和BOOLEAN列数据类型之间有什么区别?
问题描述:
我正在使用MySQL版本5.1.49-1ubuntu8.1.它允许我定义两种不同数据类型的列:BOOL
和BOOLEAN
.两种类型有什么区别?
I'm using MySQL version 5.1.49-1ubuntu8.1. It allows me to define columns of two different data types: BOOL
and BOOLEAN
. What are the differences between the two types?
答
它们都是 TINYINT(1)的同义词.