You have an error in your SQL syntax; check the manual that corresponds to 。。。错误解决方法

往mysql插入数据或者更新数据,老是经常出现You have an error in your SQL syntax; check the manual that corresponds to 。。。错误。
解决方法:sql语句最外面用单引号,表名和表字段用反单引号,字段值用双引号,这样就没有报错了。

sql = f'update `{table}` set `title_en` ="{title}",`content_en` = "{content}",`translateSign` = "{translateSign}" where `id` = {id}'