I am creating a table in oracle DB and trying to add constraint so that the numbers allowed in the column are 1,2,3.
CREATE TABLE "TABLE_EXAMPLE"
(
.
.
"PROTOCOL" NUMBER (1,2,3),
....)
CONSTRAINT "CH1"
CHECK ("PROTOCOL" BETWEEN 1 AND 3),
Am I doing right or any better way?