How to use sqlalchemy to connect to a pymysql database with two tables, extract the data and page it?

these are the data of my two tables:

clipboard.png

flask:

clipboard.png

sqlalchemy:

clipboard.png

:

clipboard.png


suppose models.py you designed it this way:

  sql to sqlalchemy Project  

Menu