日期:2014-05-17  浏览次数:20425 次

菜鸟求大神帮忙,在线等!!!
A表中的一个字段和B表中的一个字段做比较,如果包含就将这条记录添加到临时表中,如何实现?

------解决方案--------------------
insert into temp (select B.* from B where B.namelist not in(select A.name from A))
------解决方案--------------------
select * from A,B where A.name like B.namelist