简体   繁体   English

有没有办法使用任何运算符删除 AWS Managed Cassandra Service 表中的记录

[英]Is there a way to delete records in AWS Managed Cassandra Service table using any operator

I'm getting syntax error when using like operator to delete all the records in my table使用 like 运算符删除表中的所有记录时出现语法错误

n

Your delete query is wrong.您的删除查询是错误的。 You have to define the partition key / clustering key in a cassandra delete query.您必须在 cassandra 删除查询中定义分区键/集群键。

https://www.guru99.com/cassandra-query-language-cql-insert-update-delete-read-data.html https://www.guru99.com/cassandra-query-language-cql-insert-update-delete-read-data.html

To delete all records in a table:要删除表中的所有记录:

truncate mytable;

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AWS 中的 Symfony RabbitMQ Bundle(托管服务):有什么方法可以让它工作吗? - Symfony RabbitMQ Bundle in AWS (managed service): Any way to get this working? 从 Lagom 连接到 AWS Managed Cassandra 服务 - Connecting to AWS Managed Cassandra Service from Lagom 连接到 AWS Managed Cassandra Service (MCS) - Connecting to AWS Managed Cassandra Service (MCS) 通过 Cloud Formation 在 AWS Managed Cassandra Services 中创建表 - Creating a table in AWS Managed Cassandra Services through Cloud Formation 从 DataGrip 查询 AWS Managed Cassandra 服务时无法设置一致性级别 - Cannot set consistency level when querying AWS Managed Cassandra service from DataGrip 有没有一种方法可以使用AWS Glue作业仅将“良好”记录写入SQL Server表并返回“不良”记录? - Is there a way to write only “good” records to a SQL Server table and return the “bad” records using an AWS Glue job? 使用 Java 客户端连接到 AWS 托管的 Cassandra - Connect to AWS managed Cassandra with Java client 任何使用 AWS 服务压缩视频的方法? - Any way to compress video with AWS service? 有没有办法使用 aws 服务 api 从外部删除 aws EC2 实例 windows 服务器文件夹和日志文件 - Is there a way to delete aws EC2 intance windows server folders and log files from outside using aws service api 有没有办法使用 AWS IAM 的另一个托管策略从托管策略中“删除”某些操作 - Is there a way to 'remove' some actions from a managed policy using another managed policy for AWS IAM
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM