exists的问题
tjm1 2005-01-28 01:10:10 a 表:
a b
------
1 a
2 b
3 c
aa 表:
a b
-------
1 w
2 x
3 y
4 z ------用exists把这条记录查出来
要求用exists把aa表的第4条记录查询出来,
我用下列语句不好用,
select a from a where not exists (select a from aa);
or
select * from a where not exists (select * from aa);
应该怎么写?exists对选择的字段还有要求吗?