From 8bfedc89d75820fbb010b594463b6ae0ca0e7f04 Mon Sep 17 00:00:00 2001 From: Erick Ramirez Date: Mon, 27 Jul 2020 21:48:29 +1000 Subject: [PATCH] Fixed incorrect CREATE SCHEMA command in README.asc patch by Erick Ramirez; reviewed by Mick Semb Wever for CASSANDRA-15983 --- README.asc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.asc b/README.asc index 6360fe913c..c2947f5482 100644 --- a/README.asc +++ b/README.asc @@ -49,7 +49,7 @@ be sitting in front of a prompt: Connected to Test Cluster at localhost:9160. [cqlsh 2.2.0 | Cassandra 1.2.0 | CQL spec 3.0.0 | Thrift protocol 19.35.0] Use HELP for help. -cqlsh> +cqlsh> ---- As the banner says, you can use 'help;' or '?' to see what CQL has to @@ -57,7 +57,7 @@ offer, and 'quit;' or 'exit;' when you've had enough fun. But lets try something slightly more interesting: ---- -cqlsh> CREATE SCHEMA schema1 +cqlsh> CREATE KEYSPACE schema1 WITH replication = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 }; cqlsh> USE schema1; cqlsh:Schema1> CREATE TABLE users ( @@ -66,23 +66,23 @@ cqlsh:Schema1> CREATE TABLE users ( last varchar, age int ); -cqlsh:Schema1> INSERT INTO users (user_id, first, last, age) +cqlsh:Schema1> INSERT INTO users (user_id, first, last, age) VALUES ('jsmith', 'John', 'Smith', 42); cqlsh:Schema1> SELECT * FROM users; user_id | age | first | last ---------+-----+-------+------- jsmith | 42 | john | smith - cqlsh:Schema1> +cqlsh:Schema1> ---- If your session looks similar to what's above, congrats, your single node -cluster is operational! +cluster is operational! For more on what commands are supported by CQL, see https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile[the CQL reference]. A reasonable way to think of it is as, "SQL minus joins and subqueries, plus collections." -Wondering where to go from here? +Wondering where to go from here? * Getting started: http://wiki.apache.org/cassandra/GettingStarted * Join us in #cassandra on irc.freenode.net and ask questions