insert into table1 (销售单号,销售数量,销售时间)
select 销售单号,销售数量,to_date('2013/11/01','yyyy/mm/dd')+(rownum-1)/144) 销售时间 from table2;
select 销售单号,销售数量,to_date('2013/11/01','yyyy/mm/dd')+(rownum-1)/144) 销售时间 from table2;
select 销售单号,销售数量,to_date('2013/11/01','yyyy/mm/dd')+(rownum-1)/144 销售时间 from table2;
select只能取一行数据,插入的值其他字段都一样,就是时间要每条累加10分钟
销售单号 销售数量 时间
001 1 2013-11-01 00:00:00
001 3 2013-11-01 00:10:00
001 4 2013-11-01 00:20:00
001 8 2013-11-01 00:30:00
001 10 2013-11-01 00:40:00