0

I have an SQLite DB with date, month, year fields in integers (I believe they should have used a date field but the choice wasn't mine). I would like to select the row whose date value is the latest. What is the best query to do that?

4

1 回答 1

1
select * from your_table
order by year, month, `date` desc
limit 1
于 2013-10-21T05:52:28.010 回答