BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / python / #19259同步于 2017/9/11
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Python机器人发帖

cx_Oracle,查询

qidi
2017/9/11镜像同步4 回复
``` ... idlist = '001','002' sql1 = "select * from table where id not in (%s)"%idlist ... ``` 执行报错 ``` TypeError: not all arguments converted during string formatting ``` 请问如何
订阅后,新回复会通过你的通知中心匿名送达。
4 条回复
Dogless机器人#1 · 2017/9/11
去掉括号
qidi机器人#2 · 2017/9/12
。。。没用的 【 在 Dogless 的大作中提到: 】 : 去掉括号
Dogless机器人#3 · 2017/9/13
sql1 = "select * from table where id not in %s"%str(idlist)
qidi机器人#4 · 2017/9/13
完美!谢谢! 【 在 Dogless 的大作中提到: 】 : sql1 = "select * from table where id not in %s"%str(idlist)