在相关表c#wpf中插入数据 [英] insert data in related tables c# wpf
本文介绍了在相关表c#wpf中插入数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有2个表1和表2
表1有主键和身份
表2有外键没有身份
如何一次在两个表中插入数据
i have 2 tables table 1 and table 2
table 1 has primary key and identity
table 2 has foreign key no identity
how to insert data in both the tables at once
推荐答案
我用sql注入解决了它,但它也可以通过参数化查询完成,并推荐
i solved it with sql injection but it can also be done with parameterize query and it is recomended
这篇关于在相关表c#wpf中插入数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文