For the iPhone, since sqlite3 doesn’t support ALTER for a column, how do I change the data type of a column on a table that needs to preserve its data?
Share
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.
SQLite uses Manifest (Dynamic) typing. The column types are a guide only and so Altering the column data type is not necessary. Column Affinity is used just to provide compatibility with statically typed databases.
From the SQLite documentation:
They go on to say that this is not a bug but a feature. If it is a problem for your application I guess SQlite may not be the best choice for you.