阅读背景:

更新表提供主键冲突错误

来源:互联网 

I have following tow tables

我跟着两张桌子

create table #temp(id int,rid int)
insert into #temp
select 1,1
union all
select 2,1
union all
select 3,1

select * from #temp

drop table #temp1
create table #temp1(id int, nid int,PRIMARY KEY CLUSTERED
(
id asc,nid asc
))

insert into #temp1
select 1,10
union all
select 2,10
union all
select 2,11
union all
select 3,10
create 



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

分享到: