I have this program in Python:
import pymysql
conn = pymysql.connect(<stuff here>)
cur = conn.cursor()
cur.execute('''
INSERT INTO aderenti (nome, comune, provincia)
VALUES ('Mario', 'Spinea', 'VE');
''')
the code runs fine, and if I run the SQL command in MySQL workbench a new row appears with the selected values. But if I run this code in Python, no new row appears. How is this possible?
conn.commit().