Create only one table with Flask + SqlAlchemy

I am developing a web application based on the MySQL DBMS. I have completed a tutorial in which he answers , in which he creates all the tables related to each model, calling create_all () .

The only thing I don’t understand is how to create only one table , not all of them. I searched through Google but cannot find the answer.

+8
python flask mysql sqlalchemy
source share
1 answer

you can use create method

Model.__table__.create(session.bind) 
+12
source share

All Articles