title: Limiting SQL Table to only N number of record
body: <p>I have one <strong>SQLite</strong> table. I want it to store only 1000 rows maximum. </p>
  
  <p>If a new record comes aftre that limit, then it should automatically delete the last row before inserting the new one.</p>
  
  <p>Is there any way to achieve this?</p>