add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Data truncated for column 'bool_val' at row 1
Data truncated for column 'bool_val' at row 1
Data truncated for column 'bool_val' at row 1
Data truncated for column 'bool_val' at row 1
Data truncated for column 'bool_val' at row 1
Data truncated for column 'bool_val' at row 1
Data truncated for column 'bool_val' at row 1
Data truncated for column 'bool_val' at row 1
Data truncated for column 'bool_val' at row 1
id input_val bool_val encoded_as
2 1 0 1
3 2 1 2
6 null NULL NULL
8 '0' 0 1
9 '1' 1 2
10 '2' 1 2
14 true 0 1
Table Create Table
bool_test CREATE TABLE `bool_test` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `input_val` varchar(50) DEFAULT NULL,
  `bool_val` enum('0','1') DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci