Most likely, it's that you are not committing the transaction.<br><br><div><span class="gmail_quote">On 2/1/06, <b class="gmail_sendername">python eager</b> &lt;<a href="mailto:python_eager@yahoo.com">python_eager@yahoo.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>  <div>  <div>Hi, This my code snippet.</div>  <div>I am deleting records. But the sql statment working fine. but it will not delete. i have two files. one is db_connection, and other one is PerDetailsDAO.
</div>  <div>&nbsp;</div>  <div>i am creating object in&nbsp;PerDetailsDAO for db_connection.py</div>  <div>Thereafter executing the sql statement.</div>  <div>But the particular record will not deleted.</div>  <div>What is the error?
</div>  <div>Please rectify the problem</div>  <div>Thank you</div>  <div>&nbsp;</div>  <div>&nbsp;</div>  <div><strong><u>File Name : db_connection.py</u></strong></div>  <div><strong></strong>&nbsp;</div>  <div>import cx_Oracle<br>class db_connection:
</div>  <div>&nbsp;&nbsp; def getConnection(self):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dbconnection = cx_Oracle.connect(&quot;username&quot;, &quot;password&quot;, &quot;hoststring&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cursor =
 dbconnection.cursor()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cursor.arraysize = 50<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return cursor </div>  <div>&nbsp;</div>  <div>  <div><strong><u>File Name : PerDetailsDAO.py</u></strong></div>  <div><strong><u></u></strong>&nbsp;</div></div>  <div>
class PerDetailsDAO:</div>  <div>&nbsp;&nbsp; def delete(self,pid):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; con = db_connection()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cursor = con.getConnection()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sql = &quot;DELETE FROM PERSONALDETAILS WHERE PID =100&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cursor.execute
(sql)<br></div>  <div>regards</div><span class="sg">  <div>Python Eager</div></span><span class="ad">  <div>&nbsp;</div></span></div></div><span class="ad"><p>
                </p><hr size="1">Do you Yahoo!?<br> 
With a free 1 GB, there's more in store with <a href="http://us.rd.yahoo.com/mail_us/taglines/mailstorage/*http://mail.yahoo.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Yahoo! Mail.</a>
<p></p></span><br>_______________________________________________<br>DB-SIG maillist &nbsp;- &nbsp;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:DB-SIG@python.org">DB-SIG@python.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.python.org/mailman/listinfo/db-sig" target="_blank">
http://mail.python.org/mailman/listinfo/db-sig</a><br><br><br></blockquote></div><br><br clear="all"><br>-- <br>Nervous passengers are advised to wear a blindfold.