↧
Answer by Craig Ringer for Can not "COPY FROM" with Postgres & Python
As alluded to by @a_horse_with_no_name, you're closing the PostgreSQL database connection, but you're not committing the transaction first.psycopg2 opens a transaction for you if there isn't one...
View ArticleCan not "COPY FROM" with Postgres & Python
As the topic, this is the code and there is no error message but data did not get insert. This is my code, and can anyone tell me what's wrong with it?import psycopg2import sysimport osimport glob...
View Article
More Pages to Explore .....