I\'m trying to run NOT IN select where NOT IN list is dynamic. Something like
SELECT id, type FROM CONTACTS where type NOT IN (\'connec
You can use String.format to dynamic set the args.
for example:
db.query(TABLE, new String[] { "id", ""}, " type NOT IN (?)", "connect,answer", null, null, null);
=>
String argsArrayToString(List args) {
StringBuilder argsBuilder = new StringBuilder();
argsBuilder.append("(");
final int argsCount = args.size();
for (int i=0; i