34,838
社区成员




select [order]=row_number()over(order by getdate()),id,t.[index],data from tbb join (
select id,[index]=index1 from tba where id=2
union all
select id,[index]=index2 from tba where id=2
union all
select id,[index]=index3 from tba where id=2
)t on tbb.[index]=t.[index]