找回密码
 立即注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

查看: 5478|回复: 1

[求助] pymysql插入数据报错

1

主题

1

帖子

1

积分

贫民

积分
1
nfsli 发表于 2016-10-18 14:27:26 | 显示全部楼层 |阅读模式
本帖最后由 nfsli 于 2016-10-18 14:38 编辑

pymysql+python3.4.4,向mysql中插入数据报错
(<class 'TypeError'>, TypeError("'int' does not support the buffer interface",))
Exception ignored in: <bound method Cursor.__del__ of <pymysql.cursors.Cursor object at 0x02639C30>>
sql语句在mysql控制台中可以正确执行
其中主键自增长
回复

使用道具 举报

50

主题

1057

帖子

1108

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1108

活跃会员热心会员最佳导师默默耕耘突出贡献优秀版主荣誉管理论坛元老

blueelwang 发表于 2016-10-18 20:13:23 | 显示全部楼层
(<class 'TypeError'>, TypeError("'int' does not support the buffer interface",)) 从这句中说明: 是你传递的参数类型错误
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表