如果
tableName变量根据您的注释显示正确的表名,则仅
tableName在创建sql语句时使用,而不是
tableName[m]:
c.execute("CREATE INDEX IF NOT EXISTS "+tableName+"Date ON "+tableName+" (date)");c.execute("CREATE INDEX IF NOT EXISTS "+tableName+"Year ON "+tableName+" (year)");
如果
tableName变量根据您的注释显示正确的表名,则仅
tableName在创建sql语句时使用,而不是
tableName[m]:
c.execute("CREATE INDEX IF NOT EXISTS "+tableName+"Date ON "+tableName+" (date)");c.execute("CREATE INDEX IF NOT EXISTS "+tableName+"Year ON "+tableName+" (year)");