Possible Duplicate:
ALTER COLUMN in sqlite
I want to change the data type of a column while upgrading.
Any idea how to change the data type of a column.
While using Alter table Alter column statement it is giving a syntax error?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As it is stated in this page
http://www.sqlite.org/lang_altertable.html
Sqlite does not support the
ALTER TABLE ALTER COLUMNsyntax.As I see it you have to store the values of your columns somewhere else, add a new column, rewrite the stored values into the new column, and then drop your old column.