android的环境下, sqlite
CREATE TABLE IF NOT EXISTS test(id NVARCHAR, time datetime)
insert into test ('0', NULL)
请问为什么会报错NULL这里不对
android的环境下, sqlite
CREATE TABLE IF NOT EXISTS test(id NVARCHAR, time datetime)
insert into test ('0', NULL)
请问为什么会报错NULL这里不对
创建表时,设置字段允许为空
CREATE TABLE test (
id NVARCHAR,
time DATETIME NULL
);
然后插入
INSERT INTO test (id, time) VALUES ('0', NULL);