Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以从 SQLlite 数据库中删除列。我已经用谷歌搜索过了,这似乎是不可能的。
根据文档:
无法重命名列、删除列或在表中添加或删除约束。
我想它必须手动完成。
从ALTER TABLE手册;
ALTER TABLE
SQLite 支持有限的 ALTER TABLE 子集。SQLite 中的 ALTER TABLE 命令允许用户重命名表或向现有表添加新列。无法重命名列、删除列或在表中添加或删除约束。
所以,不,不是不删除并重新创建表。