当我尝试使用以下代码上传PlayerScore
时:
if Number.PlayerScore > Score.interact_database("SELECT Score FROM score WHERE Name = %s;" % Player_Name, False,)[0][0]
当我在Python中连接到PostgreSQL数据库时,出现了这个错误:
psycopg2.ProgrammingError: column "your name" does not exist
,“your name”是变量Player_Name。但是,当我在PostgreSQL查询工具中运行它时,它可以正常工作。有人知道为什么会出现这个错误,并且如何防止将来再次发生吗?