title: How do I determine if a Python sqlite UPDATE worked?
body: <p>I'm using sqlite3 in Python. I want to know if my UPDATE statement worked or not without doing another database query:</p>
  
  <pre><code>c.execute('update students set gpa=3.5 where stuid=123')
  </code></pre>
  
  <p>If there isn't a student with stuid 123 then obviously the update fails.</p>