mirror of https://github.com/apache/cassandra
Update data-modeling_schema.adoc
The SQL statement you provided for creating a table in Cassandra has a small syntax issue with the comment. In Cassandra, comments should be enclosed in single quotes (') and preceded by the keyword WITH. Additionally, the comment text should be properly formatted
This commit is contained in:
parent
2c99e53f2b
commit
1f9ac53b75
|
|
@ -40,7 +40,7 @@ CREATE TABLE hotel.pois_by_hotel (
|
|||
hotel_id text,
|
||||
description text,
|
||||
PRIMARY KEY ((hotel_id), poi_name) )
|
||||
WITH comment = Q3. Find pois near a hotel';
|
||||
WITH comment = 'Q3. Find pois near a hotel';
|
||||
|
||||
CREATE TABLE hotel.available_rooms_by_hotel_date (
|
||||
hotel_id text,
|
||||
|
|
|
|||
Loading…
Reference in New Issue