Why does MySQL allow text to be inserted into an integer(INT) field?
For example, I have this:
INSERT INTO `estudiante` (`usuarioID`, `identidad`, `correo`, `institucion`)
VALUES ("32", 'xxx', '[email protected]', 'exterior')
the second field is identity which is integer because it doesn't give me an error when inserting a text
What am I doing wrong? it's supposed to be an int it shouldn't allow text, it converts it to zero
Here is the table layout:
CREATE TABLE `estudiante` (
`usuarioID` INT(11) NOT NULL,
`identidad` INT(20) NOT NULL,
`correo` VARCHAR(40) NOT NULL,
`institucion` VARCHAR(80) NOT NULL,
PRIMARY KEY (`usuarioID`)
)