更新时间:2023-11-29 21:44:58
为此,您必须在两个表中都插入值
做这个
1:在包含主键的表中插入值
2:检索刚插入的数据(通过选择查询,例如,从表名中选择* * anyfieldonform ="value")
3:将所需的数据插入包含外键的表中
Hi,
For this you''ll have to insert values in both tables
do this
1: insert values in table containing Primary Key
2: Retrieve data that you just inserted(by select query for eg select * from table name where anyfieldonform = ''value'')
3: insert the required data into the table containing foreign key