I want to insert the value into a bit type column in MySQL. But I am getting a data truncation error.
CREATE TABLE `BITTESTTABLE` (
`db_field` varchar(50) NOT NULL,
`is_editable` bit(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1
If I am inserting a row with
INSERT INTO BITTESTTABLE values('XYZ','0')
I am getting
Data too long for column 'is_editable' at row 1
So how do I insert the data for bit type column?

INSERT INTO BITTESTTABLE values('XYZ',0);inserting the number 0 not the character..