How to get Last record from Sqlite?

前端 未结 12 2099
悲&欢浪女
悲&欢浪女 2020-12-02 07:37

I have a one table question_table and one ImageButton (Back). I need to get the last inserted record from the database after clicking on t

12条回答
  •  心在旅途
    2020-12-02 08:37

    I wanted to maintain my table while pulling in one row that gives me the last value in a particular column in the table. I essentially was looking to replace the LAST() function in excel and this worked.

    , (Select column_name FROM report WHERE rowid = (select last_insert_rowid() from report))
    

提交回复
热议问题