Figen Güngör
Figen Güngör

Reputation: 12559

How can i make my integer to be exactly in the number of digits that i gave in Oracle?

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

Answers (1)

Mariappan Subramanian
Mariappan Subramanian

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

Related Questions