且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何通过访问Primar表中的外键字段名称来插入外键字段ID

更新时间:2023-01-29 10:11:59

这样的事情是不可能的因为你需要首先验证所有者名称是否存在于所有者表下,然后我们可以相应地插入带有所有者的记录。



我建议你去寻找一些存储过程和触发器...如果可以,请提供更多详细信息。
Such thing is not possible as you need to validate the ownername first whether exist under the owner table or not then we could insert the record(s) with ownerid accordingly.

I would suggest you to go for some stored-procedure & trigger to do so...Please provide more details if you can.