ghoulr's recent timeline updates
ghoulr

ghoulr

V2EX member #25355, joined on 2012-08-14 18:36:18 +08:00
ghoulr's recent replies
Aug 17, 2012
Replied to a topic by kernel1983 Tornado NoSQL on MySQL on Tornado
既然这么别扭了已经,为啥不用postgresql呢,有一个字段类型叫hstore...
mysql已经变成了锤子了么
Aug 14, 2012
Replied to a topic by paloalto Python 请教一下web.py批量更新mysql数据的办法。
如果没看错的话,你的三个数组是长度相等的
for i in xrange(len(imagePath)):
db.update('image', vars=dict(path=imagePath[i]), where='path = $path', imageDescribe=imageDescibe[i], imageTile=imageTitle[i])

这的参数最好是传个tuple数组吧,看起来整齐一点
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3045 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 09:36 · PVG 17:36 · LAX 02:36 · JFK 05:36
♥ Do have faith in what you're doing.