Multiple return IDs after SQL INSERT

by mingoto

DECLARE @output TABLE (id int)

Insert into A (nome, telefone)
OUTPUT inserted.ID INTO @output
SELECT nome, telefone FROM B

select * from @output