1、修改表名为临时表
ALTER TABLE {tableName} RENAME TO TempOldTable;
2、创建新表,跟原来的表名一致
CREATE TABLE {tableName} (name TEXT, COLNew {type} DEFAULT {defaultValue}, qty INTEGER, rate REAL);
3、填充原来的数据
INSERT INTO {tableName} (name, qty, rate) SELECT name, qty, rate FROM TempOldTable;
4、删掉临时表
DROP TABLE TempOldTable;
参考:https://stackoverflow.com/questions/4253804/insert-new-column-into-table-in-sqlite