如何实现下面的功能呢??
在表A中有一个字段d,在B中也有这个字段d,想查询出下面的内容:
select * from A  where d=(select d from B where d='1')
可是上面的语句当查到的记录超过1条是就会有错,谁能帮我那????

解决方案 »

  1.   

    select * from A  where d in (select d from B where d='1')
      

  2.   

    select * from A where d in (Select d from B where d='1')
      

  3.   

    to:Drate(鸟窝里的虫) :
    你写的和我一样,至少应该加个字吗,比如:'迟了'
      

  4.   

    TO:guorui_wh(Re) :
      我写的时候又没有看到你已经发了回复了!要是看到了!哼!  我才不做这种帮人捡破烂的事呢!  我只不过是想帮帮楼主了!