在向同一个表中添加第二个外键时,我收到以下错误:
Please specify the 'onclause' of this join explicitly.
如何指定这种关系?
class Parent(Base):
First = Column(Integer, ForeignKey('Child.Ex1'))
Second = Column(Integer, ForeignKey('Child.Ex2'))
class Child(Base):
Ex1 = Column(Integer)
Ex2 = Column(Integer)