cursor.execute("SELECT blabla FROM myTab")
rows = cursor.fetchall() # rows is now something like this [(1, 100, "abc'def"), (2, None, 'dada'), (3, 42, 'bar')]
tempRows = rows
# perform other operations on rows
if tempRows == rows:
print "nothing is changed"
else:
print "rows is changed"
是的,有可能。 我从来没有用过,但它一定是这样的:
相关问题 更多 >
编程相关推荐