In Sqlite, can I know how to delete last 10 records? I\'ve wrote following coding but seems not working at all.
delete from tb_news where newsid = (SELECT ne
Did you tried?
delete from tb_news where newsid IN (SELECT newsid from tb_news order by newsid asc limit 20)
I don't know your table structure, but maybe, it should be DESC instead of ASC. I mean DESC will give you the biggest IDs (and so, the latest).