– 1、更改表中字段长度–可修改数据库表的字段长度
alter table 表名 modify 字段名 varchar2(字段长度);
– 2、查询md_column中要改单据元数据中的所有字段信息
select * from md_column where tableid = ‘表名’
– 3、更新md_column表要修改的元数据字段的长度
update md_column set columnlength = ‘字段长度’ where id = ‘表名@@@字段名’
-4、更新md_property表要修改的元数据字段的长度
update md_property set attrlength=‘字段长度’ where classid = ‘53e7cc81-a016-4d64-973b-d61fd647c7a2’ and name = ‘要修改的字段名’
– 5、修改用户定义属性表中的长度
– 5.1 找到单据对应的用户定义属性组主键 select pk_userdefrule from bd_userdefrule WHERE name like ‘%单据名称%’
– 5.2 找到单据对应的用户定义属性并修改字段输入长度 update bd_userdefitem set inputlength
= 字段长度 WHERE pk_userdefitem in (select pk_userdefitem from bd_userdefitem WHERE pk_userdefrule = ‘用户定义属性组主键’ and propindex in
(‘单据字段位置’))
– 6、重启服务器NC服务
原文链接:https://blog.csdn.net/tsw_921010/article/details/118412160
原因及解决方案:项目现场例如物料基础档案字段: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 = ‘要修改的字段名’
第五步:-更新md_column对应字段的长度
update md_column a set a.columnlength=‘2048’ where id = ‘bd_material@@@name’
第六步:-更新数据库对应表的字段长度
alter table bd_material modify name varchar2(2048)
原文链接:https://blog.csdn.net/qq_33639332/article/details/103529456
-- 1、更改表中字段长度--可修改数据库表的字段长度
alter table
-- 1、更改表中字段长度--可修改数据库表的字段长度
alter table 表名 modify 字段名 varchar2(字段长度);
-- 2、查询md_column中要改单据元数据中的所有字段信息
select * from MD_COLUMN where tableid = '表名'
-- 3、修改要修改的元数据字段长度
update MD_COLUMN set columnlength = 字段长度 where id = '表名@@@字段名'
--4、在md_class表中查找对应的id
select * from md_class where defaulttablename='er_bxzb'
--在结果集中,查找displayname为‘报销单’的id的值 d9b9f860-4dc7-47fa-a7d5-7a5d91f39290,即对应md_property表的classid
--6、查看在表md_property字段attrlength长度并修改
select * from md_property where classid='d9b9f860-4dc7-47fa-a7d5-7a5d91f39290' and name = 'zyx1';
update md_property set attrlength=500 where classid = 'd9b9f860-4dc7-47fa-a7d5-7a5d91f39290' and name = 'zyx1';
commit;
--最后需要重启中间件
原文链接:https://blog.csdn.net/Cc_Rain0624/article/details/121093735