I have a table name temp and in it I have column x with datatype INT.
mysql> desc temp;
+-------+------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+------+------+-----+---------+-------+
| x | int | YES | | NULL | |
+-------+------+------+-----+---------+-------+
As shown below I have inserted value in the column.
mysql> select * from temp;
+------+
| x |
+------+
| 10 |
+------+
Is it possible to set restriction on already defined column x such that it only takes integers with value less than 10.
Note: I do not intend to create a new column but rather add restriction on already created column