title: Two approaches to delete multiple rows from SQLite
body: <p>I've tried two different approaches to delete multiple rows from database. They seems identital for me, but behaviour is different:</p>
  
  <p>#1 Works as expected, delete rows with specified ids</p>
  
  <pre><code>public void deleteCycles(ArrayList&lt;Long&gt; ids) {
      String idsString = TextUtils.join(",", ids.toArray());
      db.execSQL("delete from cycles where _id IN (" + idsString + ");");
  }
  </code></pre>
  
  <p>#2 Delete one row (list ids.size == 1) or nothing (size != 1)</p>
  
  <pre><code>public void deleteCycles(ArrayList&lt;Long&gt; ids) {
      String idsString = TextUtils.join(",", ids.toArray());
      db.delete(DatabaseHelper.TABLE_CYCLES, "_id IN (?)", new String[]{idsString});
  }
  </code></pre>
  
  <p>Can somebody explain, where is the difference? Thanks in advance.</p>