Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
为什么带有 SQL 查询参数的 psycopg2cursor.execute() 会导致语法错误?
当在Python中的psycopg2中指定execute 的参数时 如下所示 cursor execute SELECT FROM s my table 我收到此错误 psycopg2 ProgrammingError syntax err
python
sql
postgresql
psycopg2
未找到 pg_config 可执行文件
我在安装 psycopg2 时遇到问题 当我尝试时出现以下错误pip install psycopg2 Error pg config executable not found Please add the directory contai
python
pip
psycopg2
Django 无法删除数据库:psycopg2.OperationalError:无法删除当前打开的数据库
每当我尝试通过 manage py 运行 Django 测试时 测试都会运行良好 但是最后当 Django 销毁数据库时 会发生以下错误 Destroying test database for alias default Tracebac
django
postgresql
psycopg2
使用 psycopg2 将 PostgreSQL UUID 数组作为列表返回
我有一个 SQL 语句 其中包含嵌入在ARRAY 像这样 SELECT foo ARRAY SELECT x from y AS bar 查询工作正常 但是在 psycopg2 结果游标中 数组作为字符串返回 如 1 2 3 而不是列表 我
python
postgresql
typeconversion
UUID
psycopg2
如何使用 Python / psycopg2 高效更新大型 PostgreSQL 表中的列?
我有一张大桌子 上面有大约 PostgreSQL 9 4 数据库中有 1000 万行 它看起来有点像这样 gid number1 random result 1 2 NULL NULL 2 15 NULL NULL 现在我想更新列rando
python
postgresql
sqlupdate
psycopg2
Postgresql:在不同客户端中查询速度慢 10 倍
查看 postgres 服务器日志 我发现从 Linux 客户端或 Windows 客户端调用时 同一 postgres 服务器上完全相同的查询需要更长的时间 大约长 10 倍 这些查询来自在具有 4GB RAM 的 Linux 计算机和具
python
django
postgresql
psycopg2
Python2 打印 postgresql 存储过程引发通知
如何在python脚本上打印postgres的存储过程 postgres中的存储过程示例如下 create or replace function checktime returns void language plpgsql as DEC
python
postgresql
psycopg2
postgresql:共享内存不足?
我正在使用 Python 和 psycopg2 运行大量查询 我创建了一个包含约 200 万行的大型临时表 然后使用以下命令一次从中获取 1000 行cur fetchmany 1000 并运行涉及这些行的更广泛的查询 不过 广泛的查询是自
python
database
postgresql
psycopg2
Python psycopg2使用SimpleConnectionPool数据库连接池以及execute_batch批量插入数据
有关快速插入大量数据到数据库的一个比较好的博文如下 Fastest Way to Load Data Into PostgreSQL Using Python 其中文末还有提到几种不同方式的对比 效率十分的震撼 可以看看 1 连接池和批量插
python
database
psycopg2
«
1
2
3
4
5
6
7