如何将数据从另一个表中的另一个字段插入到表的字段中? [英] how to insert a data in to a field of a table from another field in another table ?
本文介绍了如何将数据从另一个表中的另一个字段插入到表的字段中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好朋友
请为我的项目我需要您的帮助
如果两个表中其他字段的某些值相等,我想将值从一个表插入到另一个表的字段中
感谢
hello friends
please i need your help for my project
i want to insert values into a field from one table into another table if some values of the other fields in the both table are equal
thanks
推荐答案
尝试一下
try this
insert into Database1.dbo.Table1
select (AllCOl except identity Col) from Database2.dbo.Table2
感谢
真的很有帮助
再次感谢
thanks
really helpful
thanks again
这篇关于如何将数据从另一个表中的另一个字段插入到表的字段中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文