keyspace-cycling-alt

CONSISTENCY ALL;
SELECT * FROM cycling_alt.cyclist_name WHERE id = 1;
SELECT * FROM cycling_alt.cyclist_name WHERE id = 1;
CONSISTENCY QUORUM;
SELECT * FROM cycling_alt.cyclist_name WHERE id = 1;
INSERT INTO cycling_alt.cyclist_name (
  id, lastname, firstname
) VALUES (
  1, 'HOSKINS', 'Melissa'
);
CREATE KEYSPACE IF NOT EXISTS cycling_alt
WITH REPLICATION = {
  'class': 'SimpleStrategy',
  'replication_factor': 3
};
DESCRIBE KEYSPACE cycling_alt;
DROP KEYSPACE IF EXISTS cycling_alt;
USE cycling_alt;
CREATE TABLE IF NOT EXISTS cycling_alt.cyclist_name (
  id int PRIMARY KEY,
  lastname text,
  firstname text
);
TRACING OFF;
CONSISTENCY;
TRACING ON;
CONSISTENCY;

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com