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)
);
CREATE TABLE widep( cac NUMBER(10,2) not null, date DATE, dtime TIMESTAMP, type VARCHAR2(50), amount NUMBER(10,2), CONSTRAINT cac_fk FOREIGN KEY key(cac) REFERENCES cust(cac) );