三个表完全没有关联吗  如果只是一味的无条件拼在一起 用excel吧 直接贴到三列上去

解决方案 »

  1.   

    额  我假想的是将一张没有规范的表(含数据),按照范式规范下,并建立关系。
    卡在这一步了
    基本搞定了
    怎么样可以一次插三个select啊
      

  2.   

    insert into *()
    select A.xxx,B.xxxx,C.xxx
    from A,B,C
    where A.id=B.id and B.id=C.id
      

  3.   

    参考下:
    insert into store_inventory (toy_id,store_id,inventory) select toy_id,store_id,inventory  from 
    (select toy_id , @i:=@i+1 as id  from toy_info,(select @i:=0) as temp ) as a
    inner join 
    (select store_id , @i:=@i+1 as id  from store_info,(select @i:=0) as temp  ) as b
     on a.id=b.id inner join
    (select inventory , @i:=@i+1 as id  from temp_1,(select @i:=0) as temp  ) as c
      on b.id=c.id