values
is a reserved word in SQL (as in insert into mytable VALUES (1, 2, 3)
). The best approach would be to choose a name that isn't a reserved word, such as outlier_values
:
cursor.execute("""CREATE TABLE outliers (
DUT integer,
time integer,
params TEXT,
outlier_values TEXT )"""
)
If this isn't an option, you could escape the name with double quotes ("
):
cursor.execute("""CREATE TABLE outliers (
DUT integer,
time integer,
params TEXT,
"values" TEXT )"""
)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…