create table widep(
cac NUMBER,
ddate DATE,
dtime TIMESTAMP,
type VARCHAR2,
amount NUMBER(10,2),
constraint qwe foreign key(cac) references cust(cac)
)
The complete error message states Error at Command
Line:5 Column:15
which is this location:
type VARCHAR2,
^^^
VARCHAR2 requires a size parameter to define the maximum number of characters. Use something like
create table widep(
cac NUMBER,
ddate DATE,
dtime TIMESTAMP,
type VARCHAR2(100),
amount NUMBER(10,2),
constraint qwe foreign key(cac) references cust(cac)
);