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
.
精彩评论