python连接数据库后进行操作时出现错误
sql="insertintowenzhang(title,conten)values(title,content)";cursor.execute(sql)psycop...
sql = "insert into wenzhang(title,conten) values(title,content)";
cursor.execute(sql)
psycopg2.errors.UndefinedColumn: column "title" does not exist
LINE 1: insert into wenzhang(title,conten) values(title,content)
^
HINT: There is a column named "title" in table "wenzhang", but it cannot be referenced from this part of the query.
请问应当如何处理 展开
cursor.execute(sql)
psycopg2.errors.UndefinedColumn: column "title" does not exist
LINE 1: insert into wenzhang(title,conten) values(title,content)
^
HINT: There is a column named "title" in table "wenzhang", but it cannot be referenced from this part of the query.
请问应当如何处理 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |