SQL修改数据表字段长度

Posted herizai

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SQL修改数据表字段长度相关的知识,希望对你有一定的参考价值。

alter table m_Assysn_t nocheck CONSTRAINT all
Alter Table m_Assysn_t ALTER column ppid VARCHAR(150)
alter table m_Assysn_t check constraint all
Alter Table dbo.[T_STAT_ADMIN] ALTER column INIText VARCHAR(8000)
 

SUM操作的字符串到数值型的转换:

select sum(cast(变量 as bigint)) as 变量 from 表
例:select sum(cast(studentid as bigint)) as he from student








以上是关于SQL修改数据表字段长度的主要内容,如果未能解决你的问题,请参考以下文章