資料庫即時更新

Steven Wang
Feb 1, 2024

--

conn = pymysql.connect(host=’127.0.0.1',port=3306,user=’root’,password=’xxxxxx',db=’xxxxxx’, charset=’utf8', autocommit=True)

autocommitm預設是Flase

要馬上看到資料庫更新要打開

--

--