如何在php中使用外键将数据插入表字段

如何在php中使用外键将数据插入表字段

问题描述:

我已将数据插入数据库中的4个表中,并且每个表*有4个主键,现在我想在第5个表中使用这4个键作为外键,如何将数据插入到第5个字段中通过使用foriegn键表,在这个地方使用了什么...?

i have inserted data into 4 tables in a database , and have total 4 primary keys one from each table , now i want to use these 4 keys as foreign keys in the 5th table , how can i insert data into fields of 5th table by using foriegn keys , which queery is being used at this place ...?