sqlite 查询报语法错误,求大神分析
创建一张表,
CREATE TABLE [realcircs]
([index] INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
[curr_date] string DEFAULT CURRENT_DATE NOT NULL,
[curr_time] string DEFAULT CURRENT_TIME NOT NULL,
[content] string DEFAULT '未填' NULL,[status] BOOLEAN DEFAULT 'false' NOT NULL)
然后写了个很简单的查询语句:
select * from realcircs where index = 1;
但是执行却是失败的:
SQL Error: near "index": syntax error <select * from realcircs where index = 1;>
感觉也是符合sql语法的,不知为啥失败,求指导