Skip to content
Advertisement

Tag: python

Creating dynamically-typed tables using psycopg2’s built-in formatting

I’m working on a project in Python that interacts with a PostgreSQL data warehouse, and I’m using the psycopg2 API. I am looking to create dynamically-typed tables. For example: I would like to be able to execute the following code: and end up with a table named “animals” that contains a column “name” of type VARCHAR. However, when I attempt

Advertisement