1、把product表的pid设置为主键2、把customer表的cid设置为主键;3、Order表的pid与product表的pid建立外键关系,Order表的cid与customer表的cid建立外键关系;4、Order表的cid与pid建立索引。