我试了半天总是取不出来。
select a.x,b.x,c.x from a,b,c on a.x=b.x and a.x=c.x

解决方案 »

  1.   

    select a.x,b.x,c.x from a,b,c where a.x=b.x and a.x=c.x如果x同名,最好在select 中,对另外两个使用as 为字段取一个别名.
      

  2.   

    on 后面可以跟AND 吗。
      

  3.   

    我晕,看错了
    如果是join的话加on,
    不加join的话用where
      

  4.   

    select a.x,b.x,c.x 
    from a inner join b
      on a.x=b.x
       inner join c
         on a.x=c.x
    或者select a.x,b.x,c.x from a,b,c where a.x=b.x and a.x=c.x