I would like to set up a callback in Python when a table on SQL Server changes, similar to how its done for Oracle here.
http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/oow10/python_db/python_db.htm#t11
Is there a library that allows me to do so in Python, an example would be appreciated.
1 Answers
Answers 1
Can you do this with mysldb?
cursor.execute("""INSERT INTO `User`(`UID`, `IP`) VALUES(%s,%s);""", params) print("affected rows = {}".format(cursor.rowcount))
.rowcount This read-only attribute specifies the number of rows that the last .execute*() produced (for DQL statements like SELECT) or affected (for DML statements like UPDATE or INSERT). [9]
0 comments:
Post a Comment