Nope. Here's the doc page with what SQLite supports: https://www.sqlite.org/lang.html And here's the alter table page: https://www.sqlite.org/lang_altertable.html
-----Original Message----- From: sqlite-users [mailto:sqlite-users-boun...@mailinglists.sqlite.org] On Behalf Of Peng Yu Sent: Wednesday, April 10, 2019 8:11 AM To: SQLite mailing list Subject: [sqlite] Does sqlite3 support alter table add primary key? Hi, I got the following error. Does sqlite3 support alter table add primary key? sqlite> alter table mytab add primary key (h1); Error: near "primary": syntax error https://www.tutorialspoint.com/sqlite/sqlite_primary_key.htm -- Regards, Peng _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users