是这样的效果么?
insert into b(sno,sname,ssex) select sno,sname,ssex from a
insert into c(sco,sscore) select sco,sscore from a

解决方案 »

  1.   

    INSERT B(Sno,Sname,Ssex) SELECT Sno,Sname,Ssex FROM A
    INSERT C(Sco,Sscore) SELECT Sco,Sscore FROM A
      

  2.   

    这些SQL语句我都知道,我问的是在存储过程中具体怎么写,比如声明参数等,我对存储过程不是很了解
      

  3.   

    create proc Ptest
    as
     insert b(sno,sname,ssex) select sno,sname,sex from a
     insert c(sco,ssocore) select sco,sscore from a这个可不可以呢????
      

  4.   

    create proc Ptest
    as
     begin tran
       insert b(sno,sname,ssex) select sno,sname,sex from a
       if @@errcode <> 0 then goto Exception
       insert c(sco,ssocore) select sco,sscore from a
       if @@errcode <> 0 then goto Exception
     commitException:
      rollback tran
      

  5.   

    TO 回复人: Qihua_wu(小吴) 你的写法还是有点问题