把没有成绩的学生添加到T2中成绩为0我做的非常复杂了,高手能不能简化一下啊,
insert into t2 (id) select id from (select t1.id ,t1.name,t2.成绩 from t1 left join t2 on t1.id=t2.id) as t where t.成绩 is null
update t2 set t2.成绩='0' where  t2.成绩 is null分2句写的