索引给出错误消息Index('unique-example', example.c.col1, example.c.col2, unique=True)为什么会这样?这是我的班级class ExampleClass(Base): __tablename__ = 'example' __table_args__ = {'sqlite_autoincrement': True}, (Index('unique-example', col1, col2, unique=True)) index = Column(Integer, primary_key= True, nullable=False) col1 = Column(Integer, nullable=True) col2 = Column(String, nullable=True) col3 = Column(String, nullable=True)
添加回答
举报
0/150
提交
取消