BOOL is the equivalent of TINYINT (1). TINYINT Uses the smallest integer data type.
so whenever you try to create a table with a boolean data type, it is automatically converted to inttype
eg CREATE TABLE IF NOT EXISTS `test` ( `p_id` int(11) NOT NULL, `p_name` varchar(25) NOT NULL, `p_description` varchar(100) NOT NULL, `p_status` bool NOT NULL DEFAULT TRUE )
Thanks Amit
source share