阅读背景:

带有Insert子查询的SQL Server MERGE

来源:互联网 

I'm having trouble getting this compound insert to work in my MERGE statement between two tables (Ignore the when match condition, I know its bad practice). The issue I'm having is getting the ServerId field in the target table to fill. The Team field is filling fine but all of the rows have a null value for ServerId. I can't find an example online for this so I'm hoping someone can help. I don't seem to have any syntactical errors and I know the column 'ServerName' in the Source table is filled for all rows.I'm having trouble getting this compound insert




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: