码迷,mamicode.com
首页 > 数据库 > 详细

ORACLE视图添加备注

时间:2016-05-26 17:14:19      阅读:531      评论:0      收藏:0      [点我收藏+]

标签:

ORACLE视图添加备注

 

create or replace view oes_material_series_ref as
select t.productgroup, o.idnrk materialcode, t.seriescode
  from oes_park_priority t
 inner join oms_hm_mtl_general_view v
    on t.materialcode = v.material_code
  left join oms_modelbom_noderela o
    on t.materialcode = o.matnr
 where 1 = 1
   and v.primary_uom = ‘TAO‘
 group by t.productgroup, t.materialcode, o.idnrk, t.seriescode
union
select t.productgroup, t.materialcode, t.seriescode
  from oes_park_priority t
 inner join oms_hm_mtl_general_view v
    on t.materialcode = v.material_code
 group by t.productgroup, t.materialcode, t.seriescode;
comment on column OES_MATERIAL_SERIES_REF.PRODUCTGROUP is ‘产品组‘;
comment on column OES_MATERIAL_SERIES_REF.MATERIALCODE is ‘物料号‘;
comment on column OES_MATERIAL_SERIES_REF.SERIESCODE is ‘系列‘;

ORACLE视图添加备注

标签:

原文地址:http://www.cnblogs.com/lcword/p/5531856.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!