• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How to delete from SQLite

hno2005

Newbie
Jul 2, 2012
13
0
Hi every one
i want to run a delete query with limitation .
I've tried to many queries but they didn't work .
For know , I just want to remove all the rows and I write this code "

DELETE FROM tbl1 where _id IN(select _id from tbl1 WHERE cat=21)

The emulator runs perfectly without any error .
right now , I have 32 rows with cat = 21 .

could you help me to solve this problem ?

Thanks
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones