I have the following code:
SQLQuery="UPDATE Players SET [Player Name] = REPLACE(REPLACE([Player Name], 'Christian', 'Chris') , 'Reece', 'John')"
df = pd.read_sql(SQLQuery, sqlcon)
However, when I run the code I get the following error:
ResourceClosedError: This result object does not return rows. It has been closed automatically.
I ran the same SQL code in SSMS and it works perfectly fine. Why could this be happening?