Python SQLite表名长度限制

Python SQLite表名长度限制,python,sqlite,Python,Sqlite,我将SQLite与Python结合使用,并从SQLite教程中复制了以下简单代码: import sqlite3 conn = sqlite3.connect('references.db') c = conn.cursor() c.execute('''CREATE TABLE refs (author text, title text, year int)''') c.execute('''INSERT INTO refs VALUES

我将SQLite与Python结合使用,并从SQLite教程中复制了以下简单代码:

import sqlite3

conn = sqlite3.connect('references.db')
c = conn.cursor()

c.execute('''CREATE TABLE refs
            (author text, title text, year int)''')

c.execute('''INSERT INTO refs VALUES
            ('author1', 'title1', 2014)''')

conn.commit()
conn.close()
这很有效。但是,每当我尝试将表名设置为“references”时:

我得到这个错误:

line 7, in <module> (author text, title text, year int)''')
sqlite3.OperationalError: near "references": syntax error
第7行,in(作者文本、标题文本、年份int)“”)
sqlite3.error:靠近“引用”:语法错误
我已经检查了其他帖子,我发现最大长度应该没有问题

那么这里怎么了


谢谢大家!

REFERENCES是一个保留字,用于表声明中,因此您不能在表声明中使用它是有道理的。

哇,我从来没有怀疑过这是因为名称本身。非常感谢。
line 7, in <module> (author text, title text, year int)''')
sqlite3.OperationalError: near "references": syntax error