比如,我想寫一個語句
insert into t1(t1.a,t1.b)
select (t2.a,t2.b) from t2 “不滿足”
(t2.a=t1.a and t2.b=t1.b);
以上,求大神解惑。
參照下這個
insert into student(sname,sage) select t2.cname,t2.cid from course t2 where not exists
(select 1 from student t1 where t1.sname = t2.cname and t1.sage = t2.cid);