开发者

Get record that was just inserted in web.py

开发者 https://www.devze.com 2023-04-03 20:06 出处:网络
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

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

精彩评论

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