create procedure proc_name
 cl as char(10)
as
Declare v1,v2,v3,v4,v5,v6,v7,v8,v9,v10,v11,v12 as integer   /*我不想分开写*/
select v1=count(*) from table1 
.
.
.
insert into t1(v1...v12) values(v1...v12)
我不知是否正确理解了你的意思。不过后面的你自己都写出来了。