Here's a screenshot of my commands and db. I'm working in Sqlite3.
Everything seems fine and I can't see any issues with my command, but I still get an error. Any advice?
Here's a screenshot of my commands and db. I'm working in Sqlite3.
Everything seems fine and I can't see any issues with my command, but I still get an error. Any advice?
Use two command lines Define the first line of the column and the second line create a unique constraint for it.
ALTER TABLE accounts ADD username VARCHAR(30);
CREATE UNIQUE INDEX accounts_unique_index ON accounts (username);