11智能在线
新记
SQL数据库问题,修改表字段的计算公式
如题所述
举报该文章
相关建议 2020-04-02
把原来计算列删了,然后增加一个新的计算列。
--删除旧列
alter
table
表名
drop
column
计算列
--增加新的计算列
alter
table
表名
add
计算列
as
计算公式
例如:
alter
table
test
drop
column
c
--原来c=a+b
alter
table
test
add
c
as
a*b
--修改后c=a*b
温馨提示:内容为网友见解,仅供参考
当前网址:
https://11.t2y.org/zz/f87m22mp87qm7s7827q.html
其他看法
无其他回答
相似回答
大家正在搜
相关问题
SQL数据库问题,修改表字段的计算公式
在SQL中,怎样用一个Alter Table命令修改某列的计...
sql 怎么把数据库里的计算公式 进行计算
SQL字符字段中的公式计算
我想更改sql 2000数据库中表中某一列的公式属性值
SQL数据库表的字段修改问题
SQL数据库修改字段值问题
如何使用sql语句修改数据表中字段的值 要语句