How to add a positive integer constraint to a integer column in MySQL?

后端 未结 5 918
情深已故
情深已故 2021-01-17 12:01

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         


        
5条回答
提交回复
热议问题