請教:用SQL指令將金額類型字段改為數值型為什麼不行!!!

scott21cn scott21cn 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
alter table abc alter column Amount numeric(18,6)

出錯:
Server: Msg 5074, Level 16, State 1, Line 1
The object 'DF_ABC_Amount' is dependent on column 'Amount'.
Server: Msg 4922, Level 16, State 1, Line 1
ALTER TABLE ALTER COLUMN Amount failed because one or more objects access this column.

我想用SQL指令大批量將金額類型改為數值型,怎麼辦?
請高手指點,多謝!
...全文

相关推荐

评论 7
收藏 已收藏
分享
返回顶部
scott21cn
应用实例 27,579 成员 68,540 内容