【发布时间】:2016-07-07 14:14:22
【问题描述】:
您好,我刚刚在 my_table 表中添加了一个新列 Business_sys:
ALTER TABLE my_table ALTER business_sys TYPE set<text>;
但我再次删除了这个列名,因为我想更改列的类型:
ALTER TABLE my_table DROP business_sys;
当我尝试添加不同类型的相同列名时再次收到错误消息
"Cannnot add a collection with the name business_sys because the collection with the same name and different type has already been used in past"
我只是尝试执行这个命令来添加一个不同类型的新列-
ALTER TABLE my_table ADD business_sys list<text>;
我做错了什么?我对卡桑德拉很陌生。有什么建议吗?
【问题讨论】:
标签: cassandra cassandra-2.0 datastax-java-driver