diff --git a/docs/geminidb/umn/nosql_02_0009.html b/docs/geminidb/umn/nosql_02_0009.html index 4e3faa343..cea91c301 100644 --- a/docs/geminidb/umn/nosql_02_0009.html +++ b/docs/geminidb/umn/nosql_02_0009.html @@ -16,24 +16,24 @@
After logging in to the GeminiDB Cassandra instance, you can perform the following operations:
CREATE KEYSPACE IF NOT EXISTS nosql WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '3'};
-Set the keyspace name to nosql, replication to SimpleStrategy, and replication_factor to 3.
+CREATE KEYSPACE IF NOT EXISTS test_keyspace WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '3'};
+Set the keyspace name to test_keyspace, replication to SimpleStrategy, and number of replicas to 3.
CREATE TABLE nosql_table(user_id int, age int, user_name text, PRIMARY KEY(user_id));
-nosql_table indicates the table name, and the following three columns are defined: user_id, age, and user_name. user_id is the user ID of the INT type. age is the user age of the INT type. user_name is the username of the TEXT type. The primary key is user_id.
-INSERT INTO nosql_table (user_id, age, user_name) VALUES (1, 10, 'user1');
-INSERT INTO nosql_table (user_id, age, user_name) VALUES (2, 20, 'user2');
-INSERT INTO nosql_table (user_id, age, user_name) VALUES (3, 30, 'user3');
-UPDATE nosql.nosql_table SET prename = 'user_prename1' WHERE user_id = 1;
-UPDATE nosql.nosql_table SET prename = 'user_prename2' WHERE user_id = 2;
-UPDATE nosql.nosql_table SET prename = 'user_prename3' WHERE user_id = 3;
+CREATE TABLE test_table(user_id int, age int, user_name text, PRIMARY KEY(user_id));
+test_table is a table name defined by the following three columns: user_id, age, and user_name. user_id indicates a user ID of the INT data type. age indicates user age of the INT data type. user_name indicates a username of the TEXT data type. The primary key is user_id.
+INSERT INTO test_table (user_id, age, user_name) VALUES (1, 10, 'user1');
+INSERT INTO test_table (user_id, age, user_name) VALUES (2, 20, 'user2');
+INSERT INTO test_table (user_id, age, user_name) VALUES (3, 30, 'user3');
+UPDATE test_keyspace.test_table SET prename = 'user_prename1' WHERE user_id = 1;
+UPDATE test_keyspace.test_table SET prename = 'user_prename2' WHERE user_id = 2;
+UPDATE test_keyspace.test_table SET prename = 'user_prename3' WHERE user_id = 3;
Delete the age data of the user whose ID is 1.
-DELETE age FROM nosql.nosql_table WHERE user_id=1;
+DELETE age FROM test_keyspace.test_table WHERE user_id=1;
Delete the entire record of the user whose ID is 2.
-DELETE FROM nosql.nosql_table WHERE user_id=2;
-DELETE FROM test_keyspace.test_table WHERE user_id=2;
+nosql_01
+geminidb_01
Increase By
Percentage of the current storage to be automatically scaled. The value can be 10, 15, or 20. At least 100 GB is added each time.
+Percentage of the current storage to be automatically scaled. The value can be 10, 15, or 20. If the value is not a multiple of 10, the value is rounded up. At least 100 GB is added each time.
Storage Limit