Ask Your Question
3

What is the special uniqueness constraint for a table in PostgreSQL?

asked 2023-05-13 00:14:01 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-05-13 00:40:01 +0000

bukephalos gravatar image

The special uniqueness constraint in PostgreSQL is the "UNIQUE" constraint. This constraint ensures that no two rows in a table have the same values in the specified columns, essentially enforcing a unique combination of values. This constraint can be used on single or multiple columns and can be defined during table creation or added later using the ALTER TABLE command.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-13 00:14:01 +0000

Seen: 14 times

Last updated: May 13 '23