①、不管是一对多还是多对一,外键列都在多的那端。 ②、一对多关联关系中要先保存多端,再保存一端。 ③、一对多中保存之前要设置一端的id。 转载于:https://www.cnblogs.com/GooPolaris/p/7919548.html