I wonder if the following queries are equivalent. I want to add a unique constraint for two of the columns in the movie table
CREATE TABLE Movie (
title VARCHAR(255),
year INTEGER,
…
producerC# INTEGER,
UNIQUE (title, year)
);
CREATE TABLE Movie (
title VARCHAR(255) UNIQUE,
year INTEGER UNIQUE,
…
producerC# INTEGER
);