tencent cloud

TencentDB for TcaplusDB

Release Notes
Product Introduction
Product Overview
Benefits
Use Cases
Architecture
Regions
Purchase Guide
Product Pricing
Payment Overdue
Getting Started
Basic Concepts
Creating Cluster
Creating Table Group
Creating Table
Get Connection Information
Accessing TcaplusDB
Operation Guide
Managing Cluster and Table Group
Managing Table
Monitoring and Alarming
Access Management
Tag
Task List
TcaplusDB Client
Accessing by Client Tool
Client Tool Commands
TcaplusDB SDK
Release History
SDK Download
C++ SDK API
TcaplusDB Error Codes
SDK Installation
Directions for Protobuf Table SDK for C++
Directions for TDR Table SDK for C++
TcaplusDB RESTful APIs
Description
Go
Java
PHP
Python
Downloading RESTful API Samples in Multiple Languages
Practical Tutorial
Best Practice for Table Structure Design
Best Practice for Database Interaction
FAQs
Database Features
Database Use
Database Principles
API Documentation
History
Introduction
API Category
Making API Requests
Table Group APIs
Other APIs
Table APIs
Cluster APIs
Data Types
Error Codes
Service Agreement
Service Level Agreement
Terms of Service
Glossary
Contact Us

delete

PDF
フォーカスモード
フォントサイズ
最終更新日: 2024-12-04 10:12:05

Overview

This command is used to delete a record from a table by the specified key. If the -index parameter is not specified, all records that meet the condition will be deleted from the table.

Syntax

delete from table where key1 = 1 and key2 = "abc" [and -index = 1] [by partkey];

Parameters

Parameter
Protobuf
TDR
Required
table
Table name
Table name
Yes
key
Primary key field name. All key values are required.
Primary key field name. All key values are required.
Yes
value
Non-primary key field name
Non-primary key field name
Yes, at least one field name is required.
-index
LIST table: you must specify \\-index. Only the specified record will be replaced.
GENERIC table: not supported
LIST table: if \\-index is specified, the index-th record with the same key will be returned; if \\-index is not specified, all records will be returned.
GENERIC table: not supported
No
by partkey
Not supported
LIST table: not supported
GENERIC table: delete records by partial keys
No

Errors

For more information, please see Error Codes.

Sample

tcaplus> delete from table_list where uin=99 and name = "99" and key1=99 and -index=0;

delete success

delete time: 10263 us

tcaplus> delete from table_generic_xiahuaxian where _uin=99 and name = "danmi_test_1" and _key3=4 by partkey;

delete success

delete time: 14405 us

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック