1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

Getting an error of invalid identifier when try to create relationship between two tables in...

Discussão em 'Outras Linguagens' iniciado por Stack, Abril 20, 2021.

  1. Stack

    Stack Membro Participativo

    This is my device table

    CREATE TABLE "DEVICE" (
    "IMEI_Number" varchar(15),
    "Device_Model" varchar(30),
    "Device_Description" varchar(500),
    "Assigned_Sim_Number" varchar(11),
    "Activation_Date" timestamp,
    "Deactivation_Date" timestamp,
    "Manufacturer_ID" int,
    "Customer_ID" int,
    PRIMARY KEY ("IMEI_Number")
    );


    Then I have the manufacturer table which is

    CREATE TABLE "MANUFACTURER" (
    "Manufacturer_ID" int,
    "Manufacturer_Name" varchar(30),
    PRIMARY KEY ("Manufacturer_ID")
    );


    and I trying to create a relationship between these and getting the ORA-00904: "MANUFACTURER_ID": invalid identifier My relationship code is

    ALTER TABLE DEVICE
    ADD FOREIGN KEY (Manufacturer_ID) REFERENCES MANUFACTURER(Manufacturer_ID);

    Continue reading...

Compartilhe esta Página