Python sqlite3.1关于不完整输入的操作错误-建议已收到

Python sqlite3.1关于不完整输入的操作错误-建议已收到,python,sqlite,operationalerror,Python,Sqlite,Operationalerror,我有一个操作Sqlite3错误,非常感谢您的帮助。以前,当我有这个错误时,它是关于括号或类似的东西,但我看不出是什么导致了这个问题。如果你能帮助我,那就太好了。多谢各位 //declared the table: c.execute("CREATE TABLE IF NOT EXISTS ids (appointmentID, clientID, dentistID)") //I have a program here to take the inputs c.execute('''IN

我有一个操作Sqlite3错误,非常感谢您的帮助。以前,当我有这个错误时,它是关于括号或类似的东西,但我看不出是什么导致了这个问题。如果你能帮助我,那就太好了。多谢各位

//declared the table:


c.execute("CREATE TABLE IF NOT EXISTS ids (appointmentID, clientID, dentistID)")

//I have a program here to take the inputs

c.execute('''INSERT INTO ids (appointmentID, clientID, dentistID) VALUES (?,?,?),''', (appointmentID, clientID, dentistID))
以下是完整的错误回溯:

'''

//这就是错误所在

回溯(最近一次呼叫最后一次): 文件“C:/Users/barna/OneDrive/Documents/A-Level/NEA/fixing error.py”,第124行,在 登录() 文件“C:/Users/barna/OneDrive/Documents/A-Level/NEA/fixing error.py”,第33行,登录 检查ID(foundID) 文件“C:/Users/barna/OneDrive/Documents/A-Level/NEA/fixing error.py”,第84行,在checkid中 c、 执行(“插入到ID(appointmentID、clientID、dentistID)值(?、、?)、”、(appointmentID、clientID、dentistID)) sqlite3.0错误:输入不完整


''

显示完整的错误回溯!为什么在查询的末尾有一个逗号?