alter table add primary key

    0

    0

    Manuel Antunes

    The code is adding a constraint to the "testSQL" table to ensure that each row in the table has a unique vehicle_part_id.

    alter table "testSQL".vehicle_part_supplier
      add constraint key_name
        primary key (vehicle_part_id, supplier_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.