如何在php中使用外键将数据插入表字段 [英] how to insert data into table fields by using foreign key in php

查看:101
本文介绍了如何在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 ...?

推荐答案

这篇关于如何在php中使用外键将数据插入表字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆