尝试将数据插入 .db 文件时出现错误

Getting an error when I try to insert data into my .db file

我在数据库方面做的不多,但现在大学要求我这样做。我已经建立了一个可以在下面找到的模式,还制作了一个 data.sql 文件来插入数据。我收到错误 "Error: near line 1: Near NULL: Syntax error",但我看不出问题出在哪里,我知道这很简单,但我做错了,但我将不胜感激。谢谢。

Schema.sql

DROP TABLE users;
CREATE TABLE users(id integer primary key, username varchar(30), password varchar(30), email varchar(50), receive_email blob, gender varchar(6));

DROP TABLE lists;
CREATE TABLE lists(id integer primary key, user_id integer, list_id integer, name varchar(50), creation_date datetime, importance integer, completed blob);

DROP TABLE list_item;
CREATE TABLE list_item(id integer primary key, list_id integer, name varchar(50), creation_date datetime, completed blob);

data.sql

INSERT INTO users(NULL, "kieran", "password", "kmplavelle@gmail.com", "1", "male");
INSERT INTO users(NULL, "test", "testpassword", "test_email", "0", "female");

提前谢谢你。

看起来你想要VALUES在那里,例如

INSERT INTO users VALUES(NULL, ...

否则您将指定要插入的列,并且 NULL 不是有效的列名。