mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-13 03:12:13 +00:00
docs/cql: fix CREATE TABLE example with hyphenated column names
Column names containing hyphens must be double-quoted. Also fix the PRIMARY KEY reference from 'customer_id' (non-existent) to 'cust_id' (the actual column).
This commit is contained in:
@@ -1017,11 +1017,11 @@ For example:
|
||||
|
||||
CREATE TABLE customer_data (
|
||||
cust_id uuid,
|
||||
cust_first-name text,
|
||||
cust_last-name text,
|
||||
"cust_first-name" text,
|
||||
"cust_last-name" text,
|
||||
cust_phone text,
|
||||
cust_get-sms text,
|
||||
PRIMARY KEY (customer_id)
|
||||
"cust_get-sms" text,
|
||||
PRIMARY KEY (cust_id)
|
||||
) WITH cdc = { 'enabled' : 'true', 'preimage' : 'true' };
|
||||
|
||||
.. _cql-caching-options:
|
||||
|
||||
Reference in New Issue
Block a user