Teradata Drop Column 返回“没有更多空间" [英] Teradata Drop Column returns with "no more room"

查看:45
本文介绍了Teradata Drop Column 返回“没有更多空间"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试删除 150 GB 表(46 亿条记录)的 varchar(100) 列.此列中的所有数据均为空.我的数据库还有 30GB 的空间.

I am trying to drop a varchar(100) column of a 150 GB table (4.6 billion records). All the data in this column is null. I have 30GB more space in the database.

当我尝试删除该列时,它显示数据库 XY 中没有更多空间".为什么这样的动作需要这么大的空间?

When I attempt to drop the column, it says "no more room in database XY". Why does such an action needs so much space?

推荐答案

在覆盖原始表之前,ALTER TABLE 语句需要临时存储更改后的版本.我猜您要更改的表至少占用了总存储大小的 1/3

The ALTER TABLE statement needs a temporary storage for the altered version before overwriting the original table. I guess the the table that you are trying to alter occupies at least 1/3 of your total storage size

这篇关于Teradata Drop Column 返回“没有更多空间"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆