多表查询问题 在线等
表A有字段a(主键),b,c    
 表B有字段a(外键),d(主键),e 
 现在有一个String   s 
 我想根据B.e   =   s查询出表A的记录   语句怎么写啊?   
 select   A.a,A.b,A.c 
 from   A,B 
 where   B.e   =    's ';    
 这样写有什么毛病?
------解决方案--------------------暈,看錯了,少了關聯條件。 
 select A.a,A.b,A.c 
 from A,B 
 where A.a = B.a And B.e =  's '
------解决方案--------------------select a.* from a inner join b on a.a=b.a and b.e = s