求一SQL语句,从两个表中取值?该怎么解决

求一SQL语句,从两个表中取值??表A有字段a表B有字段a要找出A中B所没有的值,相同的就不拿出来了不知道我说明

求一SQL语句,从两个表中取值??
表   A   有字段   a  
表   B   有字段   a  

要找出   A   中   B所没有的值,相同的就不拿出来了

不知道我说明白没,谢谢了!

[解决办法]



select * from A where A not in(select a from B)
[解决办法]
select * from A where not exists(select a from b where a.a = b.a)