修改表字段语句: alter table 表名 alter column  字段名 set data type varchar(7700)

如: ALTER TABLE JV_BI_BACK_OPER_LOG alter column  OPERATION_DESC set DATA TYPE varchar(7700)

 

查看表字段语句:select *from syscat.columns where tabname = '表名' and colname = '表列名',如:

select *from syscat.columns where tabname = 'JV_BI_BACK_OPER_LOG' and colname = 'OPERATION_DESC'

 

查看表字段中已存放字符串长度大小:SELECT MAX(LENGTH(表列名)) FROM 表名,如:

SELECT MAX(LENGTH(OPERATION_DESC)) FROM JV_BI_BACK_OPER_LOG

相关文章:

  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2021-12-17
  • 2022-01-12
  • 2022-03-02
猜你喜欢
  • 2022-01-10
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2022-02-15
  • 2022-12-23
相关资源
相似解决方案