create procedure twotables @shijian int as begin insert into A(a,b,c,d,e) select a,b,@shijian,'01','02' from B end