这样可以
create table temp3 (SELECT tt.id FROM temp2,tt
where temp2.a1 = tt.INNAME and temp2.a2 =t.CR)这样就不可以了
delete from temp1 where temp1.id in (select temp3.id from temp3)我用的是MySQL-Front2.5,mysql是4.1的错误:delete from temp1 where temp1.id in (select temp3.id from temp3)
You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 'select temp3.id from temp3' at line 1