关于oracle创建表提示缺失右括号

2025-03-22 08:45:19
推荐回答(4个)
回答(1):

骚年,oracle里没有smallint这种类型的数据,smallint字段类型任然对应number.

回答(2):

CREATE TABLE relatrec_feat (
sect_id number(11) NOT NULL,
rel_id number(11) NOT NULL,
feat_seq number(11) NOT NULL,
feat_cat smallint NULL,
daset_id number(11) NULL,
feat_sect_id number(11) NULL,
lay_id number(11) NULL,
feat_id number(11) NULL,
PRIMARY KEY(sect_id, rel_id, feat_seq)
);

回答(3):

汗.oracle 明显有smallint类型 ,数值范围:-32,768 到 32,767 有smallint(6)范围的?

回答(4):

第一次用oracle吧,这不是坑爹么。。。smallint不是oracle里面的,请使用number()