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