apo*_*che 10
SQLite 可以将BOOL识别为一种类型,但它存储为Oli Charlesworth正确提到的整数.
但是,使用BOOL关键字仍然有效:
CREATE TABLE YourTable(
isBool BOOL NOT NULL DEFAULT 0,
);
INSERT INTO YourTable (isBool) VALUES (1);
INSERT INTO YourTable (isBool) VALUES (4);
SELECT * FROM YourTable;
isBool
----------
1
4
Run Code Online (Sandbox Code Playgroud)
仍然会添加4YourTable