select 原文 from table1,table2 where tabl1.代码=table2.代码

解决方案 »

  1.   

    select table1.field1, table2.field1,table.field2 from table1 left join table2 on table1.field1=table2.field2
    试试看吧
      

  2.   

    select table2.原文 from table1,table2 where tabl1.代码=table2.代码
      

  3.   

    select tabl1.代码 As 代码1,table2.代码,table2.原文 from table1 inner join table2 on tabl1.代码=table2.代码
      

  4.   

    inner join是联结一个或多个表的东东,好好学习一下用法;对编程比较有帮助;而且,用好数据库自带的SQL语句生成器,很罗嗦的代码就交给它拉
    Access2000、SQLServer都有的
      

  5.   

    可能没有说清楚。
    select 代码字段,其他字段1,其他字段2,... from table1 产生如下结果:
    123   abc   ...
    234   cde   ...
    345   dfr   ...
    我想它产生下面的结果:
    中国(注:代码为123) abc  ...
    美国(注:代码为234) cde  ...
    德国(注:代码为345) dfr  ...
    如何实现?
      

  6.   

    select table2.原文 其他字段 from table1,table2 where tabl1.代码=table2.代码