I've created this MYSQL Syntax
CREATE TABLE participants (
user_id MEDIUMINT UNSIGNED NOT NULL
AUTO_INCREMENT,
email VARCHAR(50) NOT NULL,
state VARCHAR(20) NOT NULL,
district VARCHAR(50) NOT NULL,
gender VARCHAR(6) NOT NULL,
age VARCHAR(2) NOT NULL,
profession VARCHAR(70) NOT NULL,
survey BOOLEAN,
registration_date DATETIME NOT NULL,
PRIMARY KEY (user_id)
);
I typed into the myphp admin SQL query box. The system accepted the code and created the table but why instead of BOOLEAN It showed survey "tinyint(1)"
why it did that and what is the difference between BOOLEAN and tinyint(1). Which is recommended for a checkbox input (html)