python语句:
    values = [('a',28),('b',29)]
    sql = """insert into test(name, age) values(%s, %s)"""
    cur.executemany(sql,values)其中name字段为varchar,age字段为int型。报错:
Mysql Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%s, %s),
(%s, %s)' at line 2请问错误中怎么会出现'%s, %s),(%s, %s)'的,语句里面只有(%s, %s)。
是不是编码相关的问题,python跟MySQL都是用的utf8编码。