douchuang1861 2017-01-09 06:53
浏览 167

如何在表中插入数据,其中一个列名是另一个表的主键?

I'm currently developing an information system wherein the user needs to fill up a form,

I have two tables namely: employee and insurance_company. In the employee table I have a column name named insurance_id wherein it is a primary key of the table insurance_company.

my problem is , I can insert data in the columns of employee table except for the insurance_id column but there is a data in the insurance_company table.

below is the form enter image description here

  • 写回答

0条回答

    报告相同问题?

    悬赏问题

    • ¥15 素材场景中光线烘焙后灯光失效
    • ¥15 请教一下各位,为什么我这个没有实现模拟点击
    • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 保护模式-系统加载-段寄存器