Reputation: 12559
I want to accept only the number that is given in the number of digits that I chose. How can i do that in Oracle?
Upvotes: 0
Views: 65
Reputation: 10063
CREATE TABLE suppliers
(
supplier_id numeric(4),
supplier_name varchar2(50),
CONSTRAINT check_supplier_id
***CHECK (supplier_id BETWEEN 100 and 9999)***
);
Upvotes: 4