摘要:
1 # 原生sql语句操作 2 sql = 'select * from user' 3 result = db.session.execute(sql) 4 5 # 查询全部 6 User.query.all() 7 # 主键查询 8 User.query.get(1) 9 # 条件查询 10 U 阅读全文
摘要:
警告内容:SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. Set it to True or False to suppress this 阅读全文