您的位置:首页 > 数据库 > Oracle

oracle insert into select模板

2015-07-31 11:49 911 查看
--生成测试数据, insert into  select 
insert into CX_DL_DISTRIBU   
select sys_guid(),
       sysdate,
       '0-1',
       sysdate,
       '0-1',
       1,
       0,
       '',
       sysdate,
       1,
       null,
       null,
       600,
       150,
       null,
       'abc',
       '1-DA23',
       '',
       '',
       t2.product_id,
       sysdate,
       0,
       60,
       15,
       10
   from CX_ITEM_SUBINV_***AILABLE_QTY_V t2
 where t2.product_id not in
       (select t3.PRODUCT_CODE_ID
          from CX_DL_DISTRIBU t3
         where t3.DEALER_ID = '1-DA23')
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: