34,837
社区成员




if OBJECT_ID('tempdb..#A') is not null
drop table #A
if OBJECT_ID('tempdb..#B') is not null
drop table #B
create table #A
(
uid int
)
insert into #A
select 1 union all
select 10 union all
select 10 union all
select 1 union all
select 8 union all
select 8 union all
select 35
go
create table #B
(
uid int ,
name varchar(10)
)
insert into #B
select 1,'AA' union all
select 10,'AA' union all
select 8,'BB' union all
select 35,'BB'
go