更新student表中的 studentId ,age字段和score 表中的studentId, subject ,score字段
这俩表中的studentId 是主外键关系。
条件是 studentId=?请求 如何 更新。。
各位大侠

解决方案 »

  1.   

    SQL语句 是什么?
    大侠。
      

  2.   

    你问得太基本了,实在不好用一两句回答你.可到baidu上看看.
      

  3.   

    1.select * #score from score where studentid=1
    2.delete from score where studentID=1
    3.update student set studentid=2 where studentid=1
    4.insert into score (studentID,....)
      select 2 as studentid, .....
      from #score
      

  4.   

    晕了。不会连基础的update也不会写吧...