title: SQLite: Combine SELECT and DELETE in one statement
body: <p>I need to run two statements like so:</p>
  
  <pre>
  Select amount from db where ID=5
  DELETE from db where ID=5
  
  </pre>
  
  <p>Currently I prepare and run two different statements. I wonder if there is a way to combine it in one statement. </p>
  
  <p>Basically all I need to do is to get an amount column from the row before it is deleted.</p>