alter table add foreign key fk



    Manuel Antunes

    The above code adds a constraint to the table "testSQL".vehicle_part_supplier that has a foreign key referencing the table "testSQL".vehicle_part.

    alter table "testSQL".vehicle_part_supplier
      add constraint vehicle_part_id_fk
        foreign key (vehicle_part_id) references "testSQL".vehicle_part (vehicle_part_id)
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.