📌  相关文章
📜  Traceback(最近一次调用最后一次):文件“D:\PyCharm\Sqlalchemy\YouTube\Tut1.py”,第 20 行,在<module>table = meta.tables[&#39;customer&#39;] AttributeError: &#39;NoneType&#39; object has no attribute &#39;tables&#39; - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:25.540000             🧑  作者: Mango

代码示例1
engine = create_engine(db_uri)
conn = engine.connect()

meta = MetaData(engine).reflect()
table = meta.tables['user']