`
Yangjinghuan
  • 浏览: 46589 次
  • 性别: Icon_minigender_1
  • 来自: 长沙
社区版块
存档分类
最新评论

sql 将一个表中的字段值复制到另一个表的字段

    博客分类:
  • SQL
阅读更多
--修改数据[MSSQL专用]
update s set s.classId=sc.classId from student s,student_class sc where s.studentId=sc.studentId

--修改数据[MySQL专用]
update Student s,Student_Class sc set s.classId=sc.classId where s.studentId=sc.studentId;
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics