select tab1.a as tab1a,tab2.a as tab2a...
from tab1,tab2
where tab1.id=tab2.id

解决方案 »

  1.   

    select tab1.a as tab1a,tab2.a as tab2a...
    from tab1,tab2
    where tab1.id=tab2.id
    我试了,说SELECT附近语法错误?
      

  2.   

    select product as tab,supple as tab1
    from tab,tab1
    where tab.severID=tab1.severID
      

  3.   

    select tab.product as tab_product,tab1.supple as tab1_supple
    from tab,tab1
    where tab.severID=tab1.severID如果product, supple在两个表中都有的话, 引用时就要区分开