【发布时间】:2018-03-17 09:51:46
【问题描述】:
这是一个文件schema.sql,我在 Flask 上使用 SQLite 进行编码。我在自动增量旁边的逗号上收到一条语法错误消息。我想知道这有什么问题。
drop table if exists entries;
create table entries
(
id integer primary key autoincrement,
title text not null,
'text' text not null
);
[这是 schema.sql 的图像]
其实我不知道怎么检查sql文件的错误,因为我刚开始通过教程“Flask”学习sqlite。
http://flask.pocoo.org/docs/0.12/tutorial/schema/#tutorial-schema
这是我学习的网页。
我使用 Vscode 作为我的编辑器,当我将鼠标光标悬停在上面有红线的逗号上时,我看到了这条消息。
【问题讨论】:
-
显示实际的错误信息。