select id=identity(int,1,1), titles,content,[type]
into #t
from tab1
where [type]=1 select * from #t--drop table #t