Flask(5)
摘要:一、FLASK-SQLALCHEMY - 关系映射 1、一对多 1、语法实现: 1、在 "多" 实体中 增加一个列,引用自“一”表的主键列 外键列名 = db.Column(db.Integer,db.ForeignKey('主表.主键')) 2、在"一"的实体中 增加关联属性以及反向引用关系 ex
阅读全文
posted @ 2018-11-08 21:14
posted @ 2018-11-08 21:14
posted @ 2018-11-07 21:23
posted @ 2018-11-07 21:20
posted @ 2018-11-07 21:18