select distinct t1.* from t1,t2 where t1.n2='ba' or (t1.n1=t2.m1 and t2.m2='abc')

解决方案 »

  1.   

    select  t1.* from t1 where n2='ba' or n1 in (select m1 from t2 where m2='abc')
      

  2.   

    谢谢 wangdehao(找找找) ( ),结果处理了。re:tangchao515(梦回唐朝)
    用您的方法检索是报错,如下:
    ADO错误:不能以DISTINCT 方式选择text、ntext或image数据类型。不管如何,都要谢谢你们。
      

  3.   

    呵呵,不好意思,不知道你的表结果,这些确实不能用DISTINCT,解决了就好