Greetings,

I am attempting to update an Oracle table using python.  When I execute the code, the python script appears to hang, in that nothing else happens.

 

As always, any assistance you can provide will be appreciated.

 

Code:

 

connection = cx_Oracle.connect("db/[EMAIL PROTECTED]")

cursor = connection.cursor()

strUpdate = " UPDATE table SET firstname = 'JOSEPH'  WHERE lastname = 'SMITH' "

cursor.execute(strUpdate)

cursor.close()

connection.close()

 

 

Tom Williams
DSHS - Research and Data Analysis Division
14th and Jefferson, MS: 45204
Olympia, WA  98504-5204
360.902.0764

 

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to