【发布时间】:2012-08-20 06:28:00
【问题描述】:
我正在尝试将布尔列添加到现有表中
alter table chatuser add activerecord bool;
alter table chatuser add activerecord boolean;
activerecord 是我的布尔列
这些查询都不起作用。如何向现有表添加布尔列?
【问题讨论】:
-
尝试更清楚您正在使用的数据库软件——不要只使用标签。
-
Here is the solution 使用 Android Room 的 SQLite 库。