select *, indentity(int,1,1) id into #t from table2
go
select A.Column, B.J_Receipt, B.J_Goods, B.J_Name from table1 A
left jion #t B on A.Column = B.id
table2 表
J_Receipt J_Goods J_Name
select identity(int,1,1) column,* into #temp from table2
select * from table1 a left join #temp b on a.column=b.column