Advertisement
killerbng

Nice MySQL toggle

Aug 12th, 2015
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.10 KB | None | 0 0
  1. query = "UPDATE "+table+" SET trouble_word = IF(trouble_word='1', '0', '1') WHERE id='"+str(id)+"'"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement