We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c68324d commit 083bf5eCopy full SHA for 083bf5e
README.md
@@ -79,7 +79,7 @@ db.execute("COMMIT")
79
80
import cs50
81
db = cs50.SQL("postgresql://postgres@localhost/test")
82
-db.execute("CREATE TABLE IF NOT EXISTS cs50 (id INTEGER PRIMARY KEY, val TEXT, bin BLOB)")
+db.execute("CREATE TABLE IF NOT EXISTS cs50 (id SERIAL PRIMARY KEY, val VARCHAR(16), bin BYTEA)")
83
db.execute("INSERT INTO cs50 (val) VALUES('a')")
84
db.execute("INSERT INTO cs50 (val) VALUES('b')")
85
db.execute("BEGIN")
0 commit comments