开发者

Get record that was just inserted in web.py

When I insert a record into a database in web.py, I noticed that the insert doesn't return back the record I just inserted. How can I get this record, 开发者_开发问答or at least a specific column in this record?


db.insert returns the last insert id, to get the record you should select it using db.select.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜