更新表字段长度属性

2022-10-17,,,

1、根据类全名定位对应类型id

select local_id,fullname from ubf_md_class where fullname like '命名空间'

2、根据类型id定位对应数据表字属性

select local_id,local_class_id,name,length from ubf_md_attribute where local_class_id =1001908020010001

3、更新对应数据表字段类型长度

update ubf_md_attribute set length =9999 where local_class_id =1001908020010001 and local_id=1001908020010021  --local_class_id 类型id,local_id 属性id

说明:该脚本实用与测试环境,正式环境慎用。

《更新表字段长度属性.doc》

下载本文的Word格式文档,以方便收藏与打印。