insert table1 select from table2,table3

来源:互联网 发布:怎么进入淘宝达人 编辑:程序博客网 时间:2024/05/16 14:08
insert into table1
  (uuid, col1, col2, col3)
  select b.uuid, b.col1, a.col2, a.col3
    from (select a.col2, a.col3
            from table2 a
           group by a.col2, a.col3
           order by a.col2) a,
         table3 b
   where a.no1 = b.no2
0 0