I have a "batch" table on my postgresql DB, and I would like to change a single value within column "id", replacing 70 with 15:
from sqlalchemy import create_engine
# Connection with DB
engine = create_engine('postgresql://xxx')
engine.connect()
# Update the value
...
UPDATE batch SET id=15 WHERE id=70. How to connect to PostgreSQL from sqlalchemy is answered here: stackoverflow.com/questions/9353822/…