に一つの文を実行することができますsqlite3.Warning:あなただけ、このコードを実行しているとき、私はエラーを取得する時
import sqlite3
user_name = raw_input("Please enter the name: ")
user_email = raw_input("Please enter the email: ")
db = sqlite3.connect("customer")
cursor=db.cursor()
sql = """INSERT INTO customer
(name, email) VALUES (?,?);,
(user_name, user_email)"""
cursor.execute(sql)
ですが、なぜでしょうか?
私はPythonでsqlite3のを使用したときから、私は、クエリと別の引数であることを持つパラメータではなく、単一の文字列を覚えています。多分それを試してみませんか? – Patashu