本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
使用 DELETE
陳述式從資料表中移除資料列。
語法
delete_statement ::= DELETE [ simple_selection ( ',' simple_selection ) ] FROM table_name [ USING update_parameter ( AND update_parameter )* ] WHERE where_clause [ IF ( EXISTS | condition ( AND condition )*) ] simple_selection ::= column_name | column_name '[' term ']' | column_name '.' `field_name condition ::= simple_selection operator term
其中:
-
table_name
是包含您要刪除資料列的資料表。
範例
DELETE manager_id FROM "myGSGKeyspace".employees_tbl WHERE id='789-01-2345' AND division='Executive' ;
DELETE
支援以下值為 update_parameter
:
TIMESTAMP
– 代表自標準基準時間 :1970 年 1 epoch月 1 日 00:00:00 GMT 以來微秒數bigint
的值。