Could anyone help me on the update statement (updating sql from python), as i am a beginner in python.. i want to update rows of data with row_list, but not sure how to write. Thank you..
` crsr.execute(query)
aList = [item[0] for item in crsr.fetchall()]
for aValue in crsr.fetchall():
crsr.execute("""UPDATE Access.dbo.M_PW SET P_PULSES=? WHERE DATETIME =?""", (row_list, aValue));
crsr.close()
conn_str.commit()`
` crsr.execute(query)
aList = [item[0] for item in crsr.fetchall()]
for aValue in crsr.fetchall():
crsr.execute("""UPDATE Access.dbo.M_PW SET P_PULSES=? WHERE DATETIME =?""", (row_list, aValue));
crsr.close()
conn_str.commit()`