insert into t3
  select t1.t101 * t2.t201
    from t1,t2
    where t1.product_id = t2.product_id

解决方案 »

  1.   

    楼上的语句是用于把数据导入一现成的表,若无t3表就会报错,应先用create table建一t3表。
    而且语法有问题,应该为
    insert into t3(t301)
      select t1.t101 * t2.t201
        from t1,t2
        where t1.product_id = t2.product_id
      

  2.   

    create table t3(t301)
    as
    select nvl(a.t101,0)*nvl(b.t201)
    from  t1 a,t2 b
    where a.product_id=b.product_id;
    给分吧!
      

  3.   

    ^_^,darkhorsedba(老牛) 也要给别人留点分种不