Fixed incorrect CREATE SCHEMA command in README.asc

patch by Erick Ramirez; reviewed by Mick Semb Wever for CASSANDRA-15983
This commit is contained in:
Erick Ramirez 2020-07-27 21:48:29 +10:00 committed by Mick Semb Wever
parent 976096abd2
commit 8bfedc89d7
No known key found for this signature in database
GPG Key ID: E91335D77E3E87CB
1 changed files with 6 additions and 6 deletions

View File

@ -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