NC扩充单据字段长度

原因及解决方案:项目现场例如物料基础档案字段:NAME标准长度101.也就是支持中文字符25个。不够的话,就会有扩充的需求.下面步骤执行扩充至2048的长度
第一步:-找对应组件的id
select a.id,a.* from md_component a where a.displayname like ‘%物料%’
第二步:-根据组件id找对应class的id
select a.id, a.* from md_class a where a.componentid = ‘b16d4bff-694f-428f-b81a-271b00d3bb2c’
第三步:-根据classid和字段找到对应元数据字段
select * from md_property a where a.classid = ‘53e7cc81-a016-4d64-973b-d61fd647c7a2’ and name = ‘name’
第四步:-更新md_property元数据字段长度
update md_property a set a.attrlength=‘2048’ where a.classid = ‘53e7cc81-a016-4d64-973b-d61fd647c7a2’ and name = ‘name’
第五步:-更新md_column对应字段的长度
update md_column a set a.columnlength=‘2048’ where id = ‘bd_material@@@name’
第六步:-更新数据库对应表的字段长度
alter table bd_material modify name varchar2(2048)

你可能感兴趣的:(NC知识)