<?xml version="1.0"?>
<oembed><version>1.0</version><provider_name>steviesblog.de</provider_name><provider_url>https://steviesblog.de/blog</provider_url><author_name>w w</author_name><author_url>https://steviesblog.de/blog/author/w/</author_url><title>Python Datenbank Klasse Update - steviesblog.de</title><type>rich</type><width>600</width><height>338</height><html>&lt;blockquote class="wp-embedded-content" data-secret="RH9IjwTrIW"&gt;&lt;a href="https://steviesblog.de/blog/2019/10/15/python-datenbank-klasse-update/"&gt;Python Datenbank Klasse Update&lt;/a&gt;&lt;/blockquote&gt;&lt;iframe sandbox="allow-scripts" security="restricted" src="https://steviesblog.de/blog/2019/10/15/python-datenbank-klasse-update/embed/#?secret=RH9IjwTrIW" width="600" height="338" title="&#x201E;Python Datenbank Klasse Update&#x201C; &#x2013; steviesblog.de" data-secret="RH9IjwTrIW" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" class="wp-embedded-content"&gt;&lt;/iframe&gt;&lt;script type="text/javascript"&gt;
/* &lt;![CDATA[ */
/*! This file is auto-generated */
!function(d,l){"use strict";l.querySelector&amp;&amp;d.addEventListener&amp;&amp;"undefined"!=typeof URL&amp;&amp;(d.wp=d.wp||{},d.wp.receiveEmbedMessage||(d.wp.receiveEmbedMessage=function(e){var t=e.data;if((t||t.secret||t.message||t.value)&amp;&amp;!/[^a-zA-Z0-9]/.test(t.secret)){for(var s,r,n,a=l.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),o=l.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),c=new RegExp("^https?:$","i"),i=0;i&lt;o.length;i++)o[i].style.display="none";for(i=0;i&lt;a.length;i++)s=a[i],e.source===s.contentWindow&amp;&amp;(s.removeAttribute("style"),"height"===t.message?(1e3&lt;(r=parseInt(t.value,10))?r=1e3:~~r&lt;200&amp;&amp;(r=200),s.height=r):"link"===t.message&amp;&amp;(r=new URL(s.getAttribute("src")),n=new URL(t.value),c.test(n.protocol))&amp;&amp;n.host===r.host&amp;&amp;l.activeElement===s&amp;&amp;(d.top.location.href=t.value))}},d.addEventListener("message",d.wp.receiveEmbedMessage,!1),l.addEventListener("DOMContentLoaded",function(){for(var e,t,s=l.querySelectorAll("iframe.wp-embedded-content"),r=0;r&lt;s.length;r++)(t=(e=s[r]).getAttribute("data-secret"))||(t=Math.random().toString(36).substring(2,12),e.src+="#?secret="+t,e.setAttribute("data-secret",t)),e.contentWindow.postMessage({message:"ready",secret:t},"*")},!1)))}(window,document);
//# sourceURL=https://steviesblog.de/blog/wp-includes/js/wp-embed.min.js
/* ]]&gt; */
&lt;/script&gt;
</html><description>In meiner Datenbank Klasse habe ich lange Zeit die Update Funktion missen lassen. Hier gelangt ihr zum alten Artikel. Einfach aus dem Grund weil ich sie vorher noch nicht ben&#xF6;tigt habe. Das habe ich hiermit nun nachgezogen(Eigentlich existiert sie schon wesentlich l&#xE4;nger, aber ich habe jetzt erst den Artikel verfasst &#x1F609; ). Das Update kann separat aufgerufen werden, macht aber auch Sinn in Zusammenhang mit einem Insert. Falls dort z.B. ein Prim&#xE4;rschl&#xFC;ssel schon existiert, kann dieser geupdated werden. F&#xFC;r ein internes Projekt habe ich folgende Befehlszeilen daf&#xFC;r benutzt if not DB.QueryInsert("insert into AUX_PROJECTS(%s) VALUES(%s)",{"ID":PList[i][0],PList[0][1]:PList[i][1],"ZINS":str(PList[i][2]).replace(",","."),PList[0][3]:PList[i][3],"ANLAGE":PList[i][4],"STATUS":PList[i][5],"SCORE":PList[i][6],PList[0][7]:PList[i][7],PList[0][8]:PList[i][8],"UNIT":PList[i][9],"UPLOADED_AT":PList[i][10]}, True): DB.QueryUpdate("update AUX_PROJECTS SET %s where [&hellip;]</description><thumbnail_url>https://steviesblog.de/blog/wp-content/uploads/2019/10/Ausgabe-Update-PDB-1024x195.png</thumbnail_url></oembed>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced (SSL caching disabled) 

Served from: steviesblog.de @ 2026-06-23 05:21:32 by W3 Total Cache
-->