我有一个元组,我想存储它的元素,我试图将它插入如下,它给出了以下错误,我做错了什么?records_to_be_inserted 是具有 8 个元素的元组。
with self.connection:
cur = self.connection.cursor()
cur.executemany("INSERT INTO rehberim(names, phone, mobile, email, \
photo, address, note, date) VALUES(?, ?, ?, ?, ?, ?, ?, ?)", self.records_to_be_inserTed)
Traceback(最近一次通话最后一次):文件“/home/tayfun/workspace/personal_guide/modules/mainwindow.py”,第 57 行,在 save_records 照片、地址、注释、日期)VALUES(?,?,?,?,? , ?, ?, ?)", self.records_to_be_inserTed) sqlite3.ProgrammingError: 提供的绑定数量不正确。当前语句使用 8,提供了 0。