救急啊,菜鳥有個簡單的問題需各位幫忙,解決立馬把分捧上,在線等

stevenqi 2002-10-30 02:29:15
我在存儲過程中有一個語句為 alter table mytable add col1 float not null default 0
直接用alter table mytable drop column col1會出現錯誤
Server: Msg 5074, Level 16, State 1, Line 1
The object 'DF__ppayment__col1__1328BA3B' is dependent on column 'col1'.
Server: Msg 4922, Level 16, State 1, Line 1
ALTER TABLE DROP COLUMN col1 failed because one or more objects access this column.

怎麼樣在存儲過程中將col1刪除,一定要寫在存儲過程中,希望各位幫忙,謝了
...全文
38 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

7,763

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧