标签:
insert into OrderEx_GongYi(RowGuid,OrderExId,[Type])select newid(),RowGuid,WorkItemTempleteDtailName from OrderEx
2、更新到表
一个表的结果更新到另一个表里,两表有关联
updatetest1 as a,test2 as b set a.app_id=b.app_id where a.keyword=b.keyword
将查询结果添加\更新到表中
原文地址:http://www.cnblogs.com/sulong/p/4809180.html