Answers for "postgres composite primary key"

SQL
1

postgres composite primary key

CREATE TABLE course_grades (
    quarter_id INTEGER,
    course_id TEXT,
    student_id INTEGER,
    grade INTEGER,
    PRIMARY KEY(quarter_id, course_id, student_id)
);
Posted by: Guest on June-18-2020
0

postgres composite primary key

PRIMARY KEY(pk_1, pk_2, ..., pk_n)
Posted by: Guest on November-20-2020

Code answers related to "postgres composite primary key"

Code answers related to "SQL"

Browse Popular Code Answers by Language