java - Using values from an ArrayList in a where clause without loads of queries? -
i'm trying accomplish this:
select * x id != for(int : arraylist)
so have arraylist 10 ids, want sql not return of rows have id same in arraylist, , i'd rather not 10 queries. there way this?
you're looking sql in
keyword:
select * x id not in ( 1, 2, 3, etc. )
Comments
Post a Comment