I have a Sqlite3 table paste{ paste_id int, paste_content text }
i have to do an update statement, where text can possibly contain single ' quotes as well as "" double quotes. In python i wrote
UPDATE_Statement = "Update paste set paste_content = '%s' where paste_id=id" %(content)
But since the content can contain ' or "" , my execute query is not working properly. How can i escape this properly ?