creating the table named temp in MYSQL database.(using WAMP server application)
create table `temp`
(
number int(255) not null check(number > 0)
)
engine=innodb;
inserting into a negative value in temp table
INSERT INTO `temp` VALUES (-1);
But the -1 got inserted, i don't why?? is there any problem with the code