如何使用Impala SQL在Impala表中更改列值?
我试图使用:
UPDATE tablename SET supports = 'A B'
WHERE supports = 'A'
但是,由于我的表不是kudu表,因此我会遇到错误。
我尝试使用alter
命令,但找不到任何好的文档。
使用Alter
查询是否看起来像这样?
ALTER TABLE tablename ALTER [COLUMN] support
SET supports = 'A B'
I was trying to update column value of my Impala table using:
UPDATE tablename SET supports = 'A B'
WHERE supports = 'A'
However, since my table is not a Kudu table, I'm getting an error.
I tried to use ALTER
command, but couldn't find any good documentation.
Using ALTER
should the query look something like this?
ALTER TABLE tablename ALTER [COLUMN] support
SET supports = 'A B'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为什么不重写所有数据。
这不是一个非常有效的方法,但它将起作用。
Why not rewrite all the data.
Not a very efficient way but it will work.