[Interest] "Last selected row id" QSqlQuery?

Witold E Wolski wewolski at gmail.com
Wed May 22 10:25:36 CEST 2013


How can I get efficiently the id of the last insterted row?

A the moment I am using :
SELECT MAX(id) from table.
Which isn't efficient.

How can i do it more efficiently but stay database agnostic.

best
Witold
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130522/9a434454/attachment.html>


More information about the Interest mailing list