Medium
Consider the SQL statement below for creating a table with a constraint in PostgreSQL. Which option correctly adds a unique constraint on the email column while creating the users table?
CREATE TABLE users (
id SERIAL PRIMARY KEY,
name VARCHAR(100),
email VARCHAR(255)
);
Author: abdelghaniStatus: PublishedQuestion passed 492 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!
2
What does the ACID acronym stand for in the context of PostgreSQL transactions?10
Which command in PostgreSQL is used to delete a database?5
What is the command to back up a database in PostgreSQL?3
Which PostgreSQL command changes the definition of a database object, like a table?2
Which command is used to remove all rows from a table without deleting the table itself in PostgreSQL?4
What is the mechanism in PostgreSQL that ensures the integrity of transactions and supports concurrent processing?4
What type of index is primarily used for full-text search in PostgreSQL?