python sqlite3 for loop update
<pre><code>import sqlite3    
conn = sqlite3.connect('sample.db')    
cursor = conn.cursor()    
data = cursor.execute('''SELECT * From Table''')

for i in data:    
    title = i[0]        
    status = i[1]    
    cursor.execute('''UPDATED Table SET status=? WHERE title=?''', (status, title))

cursor.close()    
conn.commit()
</code></pre>

<p>I am trying to update over multiple iterations.  However, the script breaks out of the loop as soon as the database makes the first update.  How to fix this? Thanks!</p>
