postgresql - 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:字符串格式化期间并非所有参数都转换了
问题是什么?
解决方案
推荐阅读
- javascript - 获取 Express 中的请求数
- javascript - 如何将用户从 NodeJS 服务器发布到页面?
- javascript - 如何突出显示所有 div 并为每个 div 添加一种导航
- node.js - 如何修复更新与nodeJS中发送的ID不同的ID的PUT路由
- android - 如何解决在 setContentView() 之后返回 Null 的 findViewByID()
- python - 自动分配给 Python 默认参数的参数
- php - 如何实时更新页面以响应数据库更改?
- php - 如何让php将变量发送到python?
- laravel - 如何在Laravel 上使用 GuzzleHttp 提取标签
- java - 无法导入 android.support.v4.content.ContextCompat