绑定参数里面,全部使用%s,不能用%d,如
cursor.execute(
'insert into phoneinfo(serial, time) values("%s", "%s")'
, ([
'1'
,
1
]))
time字段类型是int,后面传入的1也是int型,但是参数类型需要用%s
绑定参数里面,全部使用%s,不能用%d,如
转载于:https://my.oschina.net/u/222749/blog/3065090