title: there is any way to reduce code to update multiple columns in mysql python?
body: <p>there is any way to reduce code to update multiple columns in mysql python ?
  im new in python and mysql</p>
  <pre><code>    mycursor.execute(&quot;&quot;&quot;UPDATE AVAX_position SET stoplossexcude=%s WHERE name=%s&quot;&quot;&quot;,
                       ('false', 'aiposition'))
      mycursor.execute(&quot;&quot;&quot;UPDATE ETH_position SET stoplossexcude=%s WHERE name=%s&quot;&quot;&quot;,
                       ('false1', 'aiposition'))
      mycursor.execute(&quot;&quot;&quot;UPDATE ETH_position SET openorder=%sWHERE name=%s&quot;&quot;&quot;,
                       ('false', 'aiposition'))
      mycursor.execute(&quot;&quot;&quot;UPDATE ADA_position SET openorder=%sWHERE name=%s&quot;&quot;&quot;,
                       ('false', 'aiposition'))
      mycursor.execute(&quot;&quot;&quot;UPDATE DOGE_position SET openorder=%sWHERE name=%s&quot;&quot;&quot;,
                       ('false', 'aiposition'))
      mycursor.execute(&quot;&quot;&quot;UPDATE BNB_position SET openorder=%sWHERE name=%s&quot;&quot;&quot;,
                       ('false', 'aiposition'))
      mycursor.execute(&quot;&quot;&quot;UPDATE UNI_position SET openorder=%sWHERE name=%s&quot;&quot;&quot;,
                       ('false', 'aiposition'))
      mycursor.execute(&quot;&quot;&quot;UPDATE MATIC_position SET openorder=%sWHERE name=%s&quot;&quot;&quot;,
                       ('false', 'aiposition'))
  </code></pre>