I have a table with an 'int' column. During a software update, I want to change it to a "long" data type. It seems that SQLite does not provide an option (in the alter statement) for modifying / modifying column properties. Since I want to perform an update, the table may contain data that the user should not lose. Therefore, please offer me a good way to change the data type property of a column without losing data.
One way suggested in the search links is to create a temporary table, copy the records from the existing table, delete the existing table, and rename the temporary table. I doubt it is effective.
Your help was appreciated!
Hi
Vivek Ragunathan
source
share