<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.twig.es/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.twig.es/index.php?action=history&amp;feed=atom&amp;title=Python_mysql_transaction_example</id>
		<title>Python mysql transaction example - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.twig.es/index.php?action=history&amp;feed=atom&amp;title=Python_mysql_transaction_example"/>
		<link rel="alternate" type="text/html" href="https://wiki.twig.es/index.php?title=Python_mysql_transaction_example&amp;action=history"/>
		<updated>2026-05-06T14:36:22Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.0</generator>

	<entry>
		<id>https://wiki.twig.es/index.php?title=Python_mysql_transaction_example&amp;diff=2965&amp;oldid=prev</id>
		<title>George2: Created page with &quot;&lt;source lang=&quot;python&quot;&gt; # Prepare SQL query to DELETE required records sql = &quot;DELETE FROM EMPLOYEE WHERE AGE &gt; '%d'&quot; % (20) try:    # Execute the SQL command    cursor.execute(...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.twig.es/index.php?title=Python_mysql_transaction_example&amp;diff=2965&amp;oldid=prev"/>
				<updated>2016-02-25T12:10:34Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; # Prepare SQL query to DELETE required records sql = &amp;quot;DELETE FROM EMPLOYEE WHERE AGE &amp;gt; &amp;#039;%d&amp;#039;&amp;quot; % (20) try:    # Execute the SQL command    cursor.execute(...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# Prepare SQL query to DELETE required records&lt;br /&gt;
sql = &amp;quot;DELETE FROM EMPLOYEE WHERE AGE &amp;gt; '%d'&amp;quot; % (20)&lt;br /&gt;
try:&lt;br /&gt;
   # Execute the SQL command&lt;br /&gt;
   cursor.execute(sql)&lt;br /&gt;
   # Commit your changes in the database&lt;br /&gt;
   db.commit()&lt;br /&gt;
except:&lt;br /&gt;
   # Rollback in case there is any error&lt;br /&gt;
   db.rollback()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>George2</name></author>	</entry>

	</feed>