I Have 3 column
stu_id
sub_code
lecture_date
What I want is that the id and code columns cannot be repeated. I am trying but it only allows me to select a primary key.
CREATE TABLE example(
stu_id INT PRIMARY KEY,
sub_code VARCHAR(3) PRIMARY KEY,
lecture_date DATE