I'm going to use mysql
constraints to prevent inserting numbers less than zero. I found this query from W3schools.
CREATE TABLE Persons
(
P_Id int NOT NULL,
LastName varchar(255) NOT NULL,
FirstName varchar(255),
Address varchar(255),
City varchar(255),
CHECK (P_Id>0)
)
But when I insert 0
It allows me to do this. Any idea?