Guest User

Untitled

a guest
Mar 21st, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. def deleteall(self):
  2. conn = sqlite3.connect('position.dms')
  3. cursor = conn.cursor()
  4. cursor.execute('DELETE FROM `servo_9`')
  5.  
  6. with conn:
  7. conn.execute('delete from "table"')
  8.  
  9. conn.commit()
  10.  
  11. cursor.execute('DELETE FROM `servo_9`')
Add Comment
Please, Sign In to add comment