What do you want to save?
Add Code snippet
New code examples
-
SQL 2022-01-22 05:05:07
could not assemble any primary key columns for mapped table sqlalchemy
1. Make sure all your tables have a primary key and you set the __table__ = 'name' 2. execute the following underneath declared table models with Session(engine) as session: Base.metadata.create_all(engine) session.commit() Add solution