select A1,B1,C1  from tablename  where C1='g' and A1='a'

解决方案 »

  1.   

    select *  from tablename  where C1='g' and a1='a'
      

  2.   

    select tablename.A1,tablename.B1,tablename.C1  from tablename  where ( tablename.A1='a')
    用查询生成器写会容易的多。
      

  3.   

    select * from tablename  t1 where exists (select a1,c1 from tablename t2 where t1.a1=t2.a1 and t1.c1=t2.c1 group by a1,c1 having count(*) > 1 )
      

  4.   

    在access查询也很容易,可以用做SQL语句调试,也可以生成查询
      

  5.   

    不好意思,写错了,其实是要得到以下结果的
          A1       B1       C1
      ---------------------------  
          a        z        g
          f        c        g
      ---------------------------知道的条件是 C1
      

  6.   

    select tablename.A1,tablename.B1,tablename.C1  from tablename  where ( tablename.A1='a')