0

I have CSV file whose data i need to dump into postgresql table using python script.Also need to create a dynamic table in postrgresql.

Help me if know any ready made tool or the conventional way .

Regards,

1
  • take a look at COPY command Commented Jun 6, 2014 at 15:31

1 Answer 1

2

psycopg2 offers support for the COPY command, which is what you'll want to use.

See Using COPY in the psycopg2 docs. You'll want to use COPY ... WITH (FORMAT CSV).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.