ちょっと私は次のコードを使用します:
bookseats = [0,1]
print"What seats would you like to book?"
bookseats[0] = raw_input("Choice : ")
bookseats[1] = raw_input("What is their user ID? : ")
cur.execute("SELECT * FROM seats WHERE Booked='N'")
row = cur.fetchone()
if row != None and row[2] == "S":
booked = 'B'
print "Seat Number:" , row[0] ,"Is now booked!"
cur.execute("UPDATE seats SET CustID=? AND Booked=? WHERE Seat_name=? AND Day=?", (bookseats[1],booked,bookseats[0],choice)
しかし、私がこれを行うと、CustID 列が 0 に変わりすぎて、予約済み列が予約を表す「B」に切り替わらず、「N」のままになります。:(