Created
April 12, 2009 01:38
-
-
Save cheeaun/93816 to your computer and use it in GitHub Desktop.
Change column name in SQLite
This file contains 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
ALTER TABLE table ADD newColumn INTEGER; | |
UPDATE table SET newColumn = oldColumn; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you need to upgrade sqllite database version to 3.29.0.
https://www.sqlite.org/android/doc/trunk/www/install.wiki
https://sqlite.org/lang_altertable.html
https://www.sqlite.org/download.html