你的问题不明确,好像不用inner join

解决方案 »

  1.   

    表A 中有字段 code
    表B   中有字段 subbureau_code train_code station_train_code
    A  中的 code 是由 B 中的 subbureau_code train_code station_train_code 字段连接起来得到的,即:code = subbureau_code + train_code + station_train_code;
    如何用inner join将两个表联结起来?
      

  2.   

    select * from A a 
    inner join B b
    on a.code=(b.subbureau_code + b.train_code + b.station_train_code)
      

  3.   

    select *
    from a inner join b
      on a.code = b.subbureau_code + b.train_code + b.station_train_code
      

  4.   

    join 缺省的时候就是inner join