Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

data type for positive number

562167Dec 11 2007 — edited Dec 11 2007
Hi,

i have created a table like this:

CREATE TABLE pos_tab (id NUMBER PRIMARY KEY, name VARCHAR2(50), quantity NUMER);

i want the quantity column should not accept negative value.if i give negative values, it ll throw an error.
I do not know which datatype is used for doing this.

plz help me
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 8 2008
Added on Dec 11 2007
11 comments
1,061 views