declare @a1 varchar(20),@a2 int,@a3 int,@a4 int
declare LS cursor for select 姓名 , 牙膏 , 肥皂 , 电池 from table4
open LS
fetch LS into @a1,@a2,@a3,@a4
while @@fetch_status=0
begin
insert into t select @a1,'牙膏',@a2
insert into t select @a1,'肥皂',@a3
insert into t select @a1,'电池',@a4
fetch LS into @a1,@a2,@a3,@a4
end