db = pymysql.connect("Hostname","user","password","DBNAME" ) sql_insert_blob_query = """UPDATE t_content SET data= %s WHERE t_content.iscurrent= %s AND t_content.ID = %s""" values = [pymysql.Binary(bin_data),1,name[:-4]]
mcamin / xml-updater Goto Github PK
View Code? Open in Web Editor NEWConvert XML to BLOB and Update it in Database