摘要: 当我们使用SQLAlchemy库来连接和管理MySQL数据库时,有时候会遇到这样的错误信息:AttributeError: 'Engine'对象没有'execute'属性。该错误通常出现在我们尝试执行SQL语句时。 错误的原因 出现这个错误的原因通常是因为我们直接在Engine对象上调用execut 阅读全文
posted @ 2024-04-29 06:49 Excel2016 阅读(10) 评论(0) 推荐(0) 编辑
摘要: RuntimeError: The current Flask app is not registered with this 'SQLAlchemy' instance. Did you forget to call 'init_app', or did you create multiple ' 阅读全文
posted @ 2024-04-29 05:48 Excel2016 阅读(64) 评论(0) 推荐(0) 编辑