我需要使用Oracle0.7关联两个表;一个在MySQL数据库中,另一个在SQLAlchemy数据库中。
我已经成功地关联了这样的表,其中的键是相同类型的:
Base = declarative_base()
class Survey(Base):
__tablename__ = 'SURVEY'
survey_id = Column(Integer, primary_key=True)
term_id = Column(Integer, nullable=False)
# Because the TERM table is in Orac