sql - Oracle ORA-00902 Invalid datatype error -
I am trying to create two tables, which ORA -00 9 02 throwing error, not understanding it can What's wrong here ..
Create tablespace Viacisieliaro (Model_ano VARCHAR2 (12) NOT NULL, description VARCHAR2 (1000) is not null, UNIT_PRICE NUMBER (10) taps, Krtrikstok number (5), CC number (3) Faucet, conservant vehicle_store_pike primary key (model_no)); Table VEHICLE_BOOKING Create (BOOKING_ID VARCHAR2 (12) No, CUSTOMER_NAME VARCHAR2 (30) NOT NULL, EMAIL_ID VARCHAR2 (30) NOT NULL, contact number (15) do not know VARCHAR2 (500) No, no, PINCODE NUMBER (10) NOT NULL , MODEL_NO VARCHAR2 (12) No, DATE_OF_BOOKING VARCHAR2 (12) No, zero, EXPECTED_DATE_OF_DELIVERY VARCHAR2 (12) No, Constructant vehicle_booking_pk Primary key (BOOKING_ID), CONSTRAINT vehicle_booking_fk FOREIGN_KEY (MODEL_NO) reference VEHICLE_STORE (MODEL_NO);
Thanks in advance ...
Replace FOREIGN_KEY (MODEL_NO)
and foreign key (Modl_ano)
(no underscore).
Comments
Post a Comment