Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Sqlite Delete multiple rows

$
0
0

Hi I need help,

I have a List of Ids . I need to delete multiple rows from my table using List of Ids in where clause.

My query is Like this

delete from mytable where mytable.Id in (list.GroupBy(x=> x.Id).Select(group=>group.First()));

It show syntax error.

And I dont like to put the delete query in loop to achieve this.

Please help me to solve this. Thanks in advance


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>