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 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
ALTER TABLE table ADD newColumn INTEGER; | |
UPDATE table SET newColumn = oldColumn; |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it is not working post syntax for rename the column name in tables