
PostgreSQL
文章平均质量分 50
micromicrofat
Python | Go | Deep Learning
展开
-
MySQL迁移至PostgreSQL过程记录
最近项目需要在MySQL数据库的基础上,增加对PostgreSQL的支持,由于对PostgreSQL不了解,导致遇到非常多的坑,故在这里记录一下不存在就插入,存在就更新MySQL:REPLACE INTO tablename (`a`, `b`, `c`) VALUES (1, 2, 3);PostgreSQL:INSERT INTO "tablename" ("a", "b", "c") values ('1', '2', '3')ON CONFLICT ("a") DO UPDATE S原创 2021-08-19 14:35:37 · 921 阅读 · 0 评论 -
【Py】解决mac安装psycopg2报错
在mac上安装psycopg2时报错>>> pip3 install psycopg2Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simpleCollecting psycopg2 Using cached https://pypi.tuna.tsinghua.edu.cn/packages/aa/8a/7c80e7e44fb1b4277e89bd9ca509aefdd4dd1b2c547c6f293afe9f7f原创 2021-07-02 10:13:03 · 2263 阅读 · 1 评论