sql-sqlite-android - android数据库怎么删除列
ringa_lee
ringa_lee 2017-04-17 14:45:27
0
3
694
ringa_lee
ringa_lee

ringa_lee

reply all(3)
PHPzhong

alter table tableName drop column columnName . Normal SQL operations

伊谢尔伦

I haven’t learned database before, buddy.

刘奇

Objection to the above two answers, I just encountered this problem. Drop is not supported in sqlite's alter.
That is to say, columns cannot be deleted directly.
If you must implement this function, you can only create a new table for the time being, then migrate the things in the previous table, delete the old table, and then change the name of the new table to the name of the old table.
This is what I learned. . . Hopefully there's a better way. . .

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template