insert into tableB (colname1,colname2,colname3...) 
select col1,col2,col3...
from tableA
where 条件