How can we add a constraint which enforces a column to have only positive values.
Tried the following mysql statement but it doesn\'t work
create tab
The way to fix this is to explicitly tell MySQL Server to create an Unsigned integer.
CREATE TABLE tbl_example ( example_id INT UNSIGNED NOT NULL AUTO_INCREMENT, example_num INT UNSIGNED NOT NULL, example_text TEXT PRIMARY KEY (`example_id`) );