title: How to delete the first 10 row from database SQlite in android?
body: <p>I am building an android application where I am using data helper class to store the data.</p>
  
  <p>Now the problem I am facing is How can I delete top old 10 data from table.</p>
  
  <p>I am using below query but my application crashed.</p>
  
  <pre><code>    public void deleteRec() {
      String ALTER_TBL ="delete from " + TBL_NAME +
              " order by _id LIMIT 3);";
      db.execSQL(ALTER_TBL);
      }
  </code></pre>
  
  <p>And calling using -  </p>
  
  <pre><code>new DatabaseHelper(getApplicationContext()).deleteRec();
  </code></pre>