0
데이터베이스에 대한 많은 작업을 수행하지 못했지만 지금은 대학에서해야합니다. 아래에서 찾을 수있는 스키마를 작성했으며 데이터를 삽입하는 data.sql 파일을 만들었습니다. "오류 : 근처 1 행 : NULL 근처 : 구문 오류"라는 오류가 표시되지만 문제가 무엇인지 알 수는 없지만 단순한 오류 일 것이라고 알고 있습니다. 그러나 도움을 주시면 고맙겠습니다. 고맙습니다..db 파일에 데이터를 넣으 려 할 때 오류가 발생했습니다.
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", "[email protected]", "1", "male");
INSERT INTO users(NULL, "test", "testpassword", "test_email", "0", "female");
은 사전에 감사합니다.
고맙습니다. 나는 그게 그렇게 간단한 것임을 알았습니다. 가능한 한 빨리 받아 들일 것입니다. –