📜  python sqlalchemy 插入 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:13.729000             🧑  作者: Mango

代码示例1
>>> from sqlalchemy import Column, Integer, String
>>> class User(Base):
...     __tablename__ = 'users'
...
...     id = Column(Integer, primary_key=True)
...     name = Column(String)
...     fullname = Column(String)
...     nickname = Column(String)
...
...     def __repr__(self):
...        return "" % (
...                             self.name, self.fullname, self.nickname)