I am trying to fetch the last row of my sqlite3 db. can anybody tell me the query syntax.
SELECT field
FROM TABLE
ORDER BY field DESC
LIMIT 1
assuming that ordering by DESC
puts your last row first
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With