首页 > 解决方案 > Python 3.9.1 和 PostgreSQL

问题描述

我使用的查询;

s_ekle = nk.lne_sorumlu.text ()
mycurs.execute ("insert into responsible1 (responsible_name) values (% s)", (s_ekle))
QMessageBox.information (anaPen, "Info", f "{s_ekle}\nAdded to database")
MyConn.commit ()

我得到的错误:

TypeError:字符串格式化期间并非所有参数都转换了

问题是什么?

标签: postgresql

解决方案


推荐阅读