Created
August 15, 2012 12:28
-
-
Save muojp/3359703 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sqlite> CREATE TABLE t3(_id INTEGER PRIMARY KEY AUTOINCREMENT, col1 VARCHAR(255), col2 INTEGER); | |
sqlite> CREATE UNIQUE INDEX idx_uniq ON t3(_id, col1, col2); | |
sqlite> .schema t3 | |
CREATE TABLE t3(_id INTEGER PRIMARY KEY AUTOINCREMENT, col1 VARCHAR(255), col2 INTEGER); | |
CREATE UNIQUE INDEX idx_uniq ON t3(_id, col1, col2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment