geminidb_umn

Reviewed-by: Wagner, Fabian <fabian.wagner@t-systems.com>
Co-authored-by: Ru, Li Yi <liyiru7@huawei.com>
Co-committed-by: Ru, Li Yi <liyiru7@huawei.com>
This commit is contained in:
Ru, Li Yi 2024-10-16 08:04:55 +00:00 committed by zuul
parent a21529a7d1
commit bf2ad3e80c
3 changed files with 17 additions and 17 deletions

View File

@ -16,24 +16,24 @@
</div> </div>
<div class="section" id="nosql_02_0009__en-us_topic_0221158680_section5552123017145"><h4 class="sectiontitle">Follow-up Operations</h4><p id="nosql_02_0009__en-us_topic_0000001092187204_p68055368143">After logging in to the <span id="nosql_02_0009__en-us_topic_0000001092187204_text1258443141717">GeminiDB Cassandra</span> instance, you can perform the following operations:</p> <div class="section" id="nosql_02_0009__en-us_topic_0221158680_section5552123017145"><h4 class="sectiontitle">Follow-up Operations</h4><p id="nosql_02_0009__en-us_topic_0000001092187204_p68055368143">After logging in to the <span id="nosql_02_0009__en-us_topic_0000001092187204_text1258443141717">GeminiDB Cassandra</span> instance, you can perform the following operations:</p>
<ul id="nosql_02_0009__en-us_topic_0000001092187204_ul13646161414318"><li id="nosql_02_0009__en-us_topic_0000001092187204_li564614147431">Run the <strong id="nosql_02_0009__en-us_topic_0000001092187204_b148211364438">HELP</strong> command to view all supported commands.</li></ul> <ul id="nosql_02_0009__en-us_topic_0000001092187204_ul13646161414318"><li id="nosql_02_0009__en-us_topic_0000001092187204_li564614147431">Run the <strong id="nosql_02_0009__en-us_topic_0000001092187204_b148211364438">HELP</strong> command to view all supported commands.</li></ul>
<ul id="nosql_02_0009__en-us_topic_0000001092187204_ul1511182454315"><li id="nosql_02_0009__en-us_topic_0000001092187204_li171118245432">Run <strong id="nosql_02_0009__b17348931312">HELP</strong><em id="nosql_02_0009__i203483317112"> &lt;COMMAND&gt;</em> to query the usage of a command. Example: <strong id="nosql_02_0009__en-us_topic_0000001092187204_b944037111611">HELP DESC</strong></li><li id="nosql_02_0009__en-us_topic_0000001092187204_li16722142313237">Keyspace syntax<ul id="nosql_02_0009__en-us_topic_0000001092187204_ul518915524342"><li id="nosql_02_0009__en-us_topic_0000001092187204_li2055193415351">Create a keyspace. Example:<p id="nosql_02_0009__en-us_topic_0000001092187204_p940934216355"><a name="nosql_02_0009__en-us_topic_0000001092187204_li2055193415351"></a><a name="en-us_topic_0000001092187204_li2055193415351"></a><strong id="nosql_02_0009__en-us_topic_0000001092187204_b99070472352">CREATE KEYSPACE IF NOT EXISTS nosql WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '3'};</strong></p> <ul id="nosql_02_0009__en-us_topic_0000001092187204_ul1511182454315"><li id="nosql_02_0009__en-us_topic_0000001092187204_li171118245432">Run <strong id="nosql_02_0009__b17348931312">HELP</strong><em id="nosql_02_0009__i203483317112"> &lt;COMMAND&gt;</em> to query the usage of a command. Example: <strong id="nosql_02_0009__en-us_topic_0000001092187204_b944037111611">HELP DESC</strong></li><li id="nosql_02_0009__en-us_topic_0000001092187204_li16722142313237">Keyspace syntax<ul id="nosql_02_0009__en-us_topic_0000001092187204_ul518915524342"><li id="nosql_02_0009__en-us_topic_0000001092187204_li2055193415351">Create a keyspace. Example:<p id="nosql_02_0009__en-us_topic_0000001092187204_p940934216355"><a name="nosql_02_0009__en-us_topic_0000001092187204_li2055193415351"></a><a name="en-us_topic_0000001092187204_li2055193415351"></a><strong id="nosql_02_0009__en-us_topic_0000001092187204_b99070472352">CREATE KEYSPACE IF NOT EXISTS test_keyspace WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '3'};</strong></p>
<p id="nosql_02_0009__en-us_topic_0000001092187204_p1871773722315">Set the keyspace name to <strong id="nosql_02_0009__b3875175313443">nosql</strong>, <strong id="nosql_02_0009__b18875453194419">replication</strong> to <strong id="nosql_02_0009__b3875185316441">SimpleStrategy</strong>, and <strong id="nosql_02_0009__b1875453144412">replication_factor</strong> to <strong id="nosql_02_0009__b178758538443">3</strong>.</p> <p id="nosql_02_0009__en-us_topic_0000001092187204_p1871773722315">Set the keyspace name to <strong id="nosql_02_0009__b158661037185319">test_keyspace</strong>, <strong id="nosql_02_0009__b1186643795320">replication</strong> to <strong id="nosql_02_0009__b3866133725310">SimpleStrategy</strong>, and number of replicas to <strong id="nosql_02_0009__b19867537205319">3</strong>.</p>
</li><li id="nosql_02_0009__en-us_topic_0000001092187204_li0440194092519">Run <strong id="nosql_02_0009__b1492944185513">DESC</strong> <em id="nosql_02_0009__i11929549555">&lt;keyspace_name&gt;</em> to verify the creation results.</li><li id="nosql_02_0009__en-us_topic_0000001092187204_li10716132819307">Run <strong id="nosql_02_0009__b1667791611555">use</strong> <em id="nosql_02_0009__i467791615555">&lt;keyspace_name&gt;</em> to switch to the keyspace you created.</li><li id="nosql_02_0009__en-us_topic_0000001092187204_li1996263723912">Run <strong id="nosql_02_0009__b5420152785513">DROP</strong> <strong id="nosql_02_0009__b14420132715518">KEYSPACE</strong> <em id="nosql_02_0009__i134201627185514">&lt;keyspace_name&gt;</em> to delete the keyspace you created.</li></ul> </li><li id="nosql_02_0009__en-us_topic_0000001092187204_li0440194092519">Run <strong id="nosql_02_0009__b1492944185513">DESC</strong> <em id="nosql_02_0009__i11929549555">&lt;keyspace_name&gt;</em> to verify the creation results.</li><li id="nosql_02_0009__en-us_topic_0000001092187204_li10716132819307">Run <strong id="nosql_02_0009__b1667791611555">use</strong> <em id="nosql_02_0009__i467791615555">&lt;keyspace_name&gt;</em> to switch to the keyspace you created.</li><li id="nosql_02_0009__en-us_topic_0000001092187204_li1996263723912">Run <strong id="nosql_02_0009__b5420152785513">DROP</strong> <strong id="nosql_02_0009__b14420132715518">KEYSPACE</strong> <em id="nosql_02_0009__i134201627185514">&lt;keyspace_name&gt;</em> to delete the keyspace you created.</li></ul>
</li><li id="nosql_02_0009__en-us_topic_0000001092187204_li15808191519345">Table syntax<ul id="nosql_02_0009__en-us_topic_0000001092187204_ul4145928174917"><li id="nosql_02_0009__en-us_topic_0000001092187204_li5633204711360">Create a table. Example:<p id="nosql_02_0009__en-us_topic_0000001092187204_p1128093811492"><a name="nosql_02_0009__en-us_topic_0000001092187204_li5633204711360"></a><a name="en-us_topic_0000001092187204_li5633204711360"></a><strong id="nosql_02_0009__en-us_topic_0000001092187204_b11608174274910">CREATE TABLE nosql_table(user_id int, age int, user_name text, PRIMARY KEY(user_id));</strong></p> </li><li id="nosql_02_0009__en-us_topic_0000001092187204_li15808191519345">Table syntax<ul id="nosql_02_0009__en-us_topic_0000001092187204_ul4145928174917"><li id="nosql_02_0009__en-us_topic_0000001092187204_li5633204711360">Create a table. Example:<p id="nosql_02_0009__en-us_topic_0000001092187204_p1128093811492"><a name="nosql_02_0009__en-us_topic_0000001092187204_li5633204711360"></a><a name="en-us_topic_0000001092187204_li5633204711360"></a><strong id="nosql_02_0009__en-us_topic_0000001092187204_b11608174274910">CREATE TABLE test_table(user_id int, age int, user_name text, PRIMARY KEY(user_id));</strong></p>
<p id="nosql_02_0009__en-us_topic_0000001092187204_p14202194110568"><strong id="nosql_02_0009__b10340131185718">nosql_table</strong> indicates the table name, and the following three columns are defined: <strong id="nosql_02_0009__b7340431115712">user_id</strong>, <strong id="nosql_02_0009__b234116318574">age</strong>, and <strong id="nosql_02_0009__b103416311579">user_name</strong>. <strong id="nosql_02_0009__b176881116105810">user_id</strong> is the user ID of the INT type. <strong id="nosql_02_0009__b19689816115813">age</strong> is the user age of the INT type. <strong id="nosql_02_0009__b106892016105811">user_name</strong> is the username of the TEXT type. The primary key is <strong id="nosql_02_0009__b8445341992627">user_id</strong>.</p> <p id="nosql_02_0009__en-us_topic_0000001092187204_p14202194110568"><strong id="nosql_02_0009__b1688754425316">test_table</strong> is a table name defined by the following three columns: <strong id="nosql_02_0009__b1388714412535">user_id</strong>, <strong id="nosql_02_0009__b888711441535">age</strong>, and <strong id="nosql_02_0009__b18888194455312">user_name</strong>. <strong id="nosql_02_0009__b127677100536">user_id</strong> indicates a user ID of the INT data type. <strong id="nosql_02_0009__b1176771015319">age</strong> indicates user age of the INT data type. <strong id="nosql_02_0009__b1976718101534">user_name</strong> indicates a username of the TEXT data type. The primary key is <strong id="nosql_02_0009__b8445341992627">user_id</strong>.</p>
</li><li id="nosql_02_0009__en-us_topic_0000001092187204_li651814468551">Run <strong id="nosql_02_0009__b12713183635813">DESC</strong> <em id="nosql_02_0009__i971493618588">&lt;table_name&gt;</em> to verify the creation results.</li><li id="nosql_02_0009__en-us_topic_0000001092187204_li422284416563">Insert data into the table. Example:<p id="nosql_02_0009__en-us_topic_0000001092187204_p87659381909"><a name="nosql_02_0009__en-us_topic_0000001092187204_li422284416563"></a><a name="en-us_topic_0000001092187204_li422284416563"></a><strong id="nosql_02_0009__en-us_topic_0000001092187204_b31291453562">INSERT INTO nosql_table (user_id, age, user_name) VALUES (1, 10, 'user1');</strong></p> </li><li id="nosql_02_0009__en-us_topic_0000001092187204_li651814468551">Run <strong id="nosql_02_0009__b12713183635813">DESC</strong> <em id="nosql_02_0009__i971493618588">&lt;table_name&gt;</em> to verify the creation results.</li><li id="nosql_02_0009__en-us_topic_0000001092187204_li422284416563">Insert data into the table. Example:<p id="nosql_02_0009__en-us_topic_0000001092187204_p87659381909"><a name="nosql_02_0009__en-us_topic_0000001092187204_li422284416563"></a><a name="en-us_topic_0000001092187204_li422284416563"></a><strong id="nosql_02_0009__en-us_topic_0000001092187204_b31291453562">INSERT INTO test_table (user_id, age, user_name) VALUES (1, 10, 'user1');</strong></p>
<p id="nosql_02_0009__en-us_topic_0000001092187204_p12981067516"><strong id="nosql_02_0009__en-us_topic_0000001092187204_b14138353161">INSERT INTO nosql_table (user_id, age, user_name) VALUES (2, 20, 'user2');</strong></p> <p id="nosql_02_0009__en-us_topic_0000001092187204_p12981067516"><strong id="nosql_02_0009__en-us_topic_0000001092187204_b14138353161">INSERT INTO test_table (user_id, age, user_name) VALUES (2, 20, 'user2');</strong></p>
<p id="nosql_02_0009__en-us_topic_0000001092187204_p1249212711518"><strong id="nosql_02_0009__en-us_topic_0000001092187204_b61425531665">INSERT INTO nosql_table (user_id, age, user_name) VALUES (3, 30, 'user3');</strong></p> <p id="nosql_02_0009__en-us_topic_0000001092187204_p1249212711518"><strong id="nosql_02_0009__en-us_topic_0000001092187204_b61425531665">INSERT INTO test_table (user_id, age, user_name) VALUES (3, 30, 'user3');</strong></p>
</li><li id="nosql_02_0009__en-us_topic_0000001092187204_li144811536301">Run <strong id="nosql_02_0009__b394175745814">SELECT * FROM</strong> <em id="nosql_02_0009__i169545720588">&lt;table_name&gt;</em> to query table data.</li><li id="nosql_02_0009__en-us_topic_0000001092187204_li26671151181414">Add a column to the table. Example:<p id="nosql_02_0009__en-us_topic_0000001092187204_p1783717131510"><a name="nosql_02_0009__en-us_topic_0000001092187204_li26671151181414"></a><a name="en-us_topic_0000001092187204_li26671151181414"></a><strong id="nosql_02_0009__en-us_topic_0000001092187204_b4509920141512">ALTER TABLE nosql_table ADD gender text;</strong></p> </li><li id="nosql_02_0009__en-us_topic_0000001092187204_li144811536301">Run <strong id="nosql_02_0009__b394175745814">SELECT * FROM</strong> <em id="nosql_02_0009__i169545720588">&lt;table_name&gt;</em> to query table data.</li><li id="nosql_02_0009__en-us_topic_0000001092187204_li26671151181414">Add a column to the table. Example:<p id="nosql_02_0009__en-us_topic_0000001092187204_p1783717131510"><a name="nosql_02_0009__en-us_topic_0000001092187204_li26671151181414"></a><a name="en-us_topic_0000001092187204_li26671151181414"></a><strong id="nosql_02_0009__en-us_topic_0000001092187204_b4509920141512">ALTER TABLE test_table ADD gender text;</strong></p>
</li><li id="nosql_02_0009__en-us_topic_0000001092187204_li157173354137">Update data in a table of a keyspace. Example:<p id="nosql_02_0009__en-us_topic_0000001092187204_p10953554175915"><a name="nosql_02_0009__en-us_topic_0000001092187204_li157173354137"></a><a name="en-us_topic_0000001092187204_li157173354137"></a><strong id="nosql_02_0009__en-us_topic_0000001092187204_b189541554175913">UPDATE nosql.nosql_table SET prename = 'user_prename1' WHERE user_id = 1;</strong></p> </li><li id="nosql_02_0009__en-us_topic_0000001092187204_li157173354137">Update data in a table of a keyspace. Example:<p id="nosql_02_0009__en-us_topic_0000001092187204_p10953554175915"><a name="nosql_02_0009__en-us_topic_0000001092187204_li157173354137"></a><a name="en-us_topic_0000001092187204_li157173354137"></a><strong id="nosql_02_0009__en-us_topic_0000001092187204_b189541554175913">UPDATE test_keyspace.test_table SET prename = 'user_prename1' WHERE user_id = 1;</strong></p>
<p id="nosql_02_0009__en-us_topic_0000001092187204_p29541354155916"><strong id="nosql_02_0009__en-us_topic_0000001092187204_b1395485425912">UPDATE nosql.nosql_table SET prename = 'user_prename2' WHERE user_id = 2;</strong></p> <p id="nosql_02_0009__en-us_topic_0000001092187204_p29541354155916"><strong id="nosql_02_0009__en-us_topic_0000001092187204_b1395485425912">UPDATE test_keyspace.test_table SET prename = 'user_prename2' WHERE user_id = 2;</strong></p>
<p id="nosql_02_0009__en-us_topic_0000001092187204_p139541154125917"><strong id="nosql_02_0009__en-us_topic_0000001092187204_b19954115405912">UPDATE nosql.nosql_table SET prename = 'user_prename3' WHERE user_id = 3;</strong></p> <p id="nosql_02_0009__en-us_topic_0000001092187204_p139541154125917"><strong id="nosql_02_0009__en-us_topic_0000001092187204_b19954115405912">UPDATE test_keyspace.test_table SET prename = 'user_prename3' WHERE user_id = 3;</strong></p>
</li><li id="nosql_02_0009__en-us_topic_0000001092187204_li1583971919196">Delete data from a table in a keyspace. Example:<p id="nosql_02_0009__en-us_topic_0000001092187204_p7769414163513"><a name="nosql_02_0009__en-us_topic_0000001092187204_li1583971919196"></a><a name="en-us_topic_0000001092187204_li1583971919196"></a>Delete the age data of the user whose ID is <strong id="nosql_02_0009__b4403415092627">1</strong>.</p> </li><li id="nosql_02_0009__en-us_topic_0000001092187204_li1583971919196">Delete data from a table in a keyspace. Example:<p id="nosql_02_0009__en-us_topic_0000001092187204_p7769414163513"><a name="nosql_02_0009__en-us_topic_0000001092187204_li1583971919196"></a><a name="en-us_topic_0000001092187204_li1583971919196"></a>Delete the age data of the user whose ID is <strong id="nosql_02_0009__b4403415092627">1</strong>.</p>
<p id="nosql_02_0009__en-us_topic_0000001092187204_p650381772812"><strong id="nosql_02_0009__en-us_topic_0000001092187204_b9420145416353">DELETE age FROM nosql.nosql_table WHERE user_id=1;</strong></p> <p id="nosql_02_0009__en-us_topic_0000001092187204_p650381772812"><strong id="nosql_02_0009__en-us_topic_0000001092187204_b9420145416353">DELETE age FROM test_keyspace.test_table WHERE user_id=1;</strong></p>
<p id="nosql_02_0009__en-us_topic_0000001092187204_p20521197299">Delete the entire record of the user whose ID is <strong id="nosql_02_0009__b159765503792627">2</strong>.</p> <p id="nosql_02_0009__en-us_topic_0000001092187204_p20521197299">Delete the entire record of the user whose ID is <strong id="nosql_02_0009__b159765503792627">2</strong>.</p>
<p id="nosql_02_0009__en-us_topic_0000001092187204_p2040992116368"><strong id="nosql_02_0009__en-us_topic_0000001092187204_b164610253367">DELETE FROM nosql.nosql_table WHERE user_id=2;</strong></p> <p id="nosql_02_0009__en-us_topic_0000001092187204_p2040992116368"><strong id="nosql_02_0009__en-us_topic_0000001092187204_b164610253367">DELETE FROM test_keyspace.test_table WHERE user_id=2;</strong></p>
</li><li id="nosql_02_0009__en-us_topic_0000001092187204_li564614457308">Clear all records in the table. Example:<p id="nosql_02_0009__en-us_topic_0000001092187204_p4124133673816"><a name="nosql_02_0009__en-us_topic_0000001092187204_li564614457308"></a><a name="en-us_topic_0000001092187204_li564614457308"></a><strong id="nosql_02_0009__en-us_topic_0000001092187204_b83562404385">TRUNCATE nosql.nosql_table;</strong></p> </li><li id="nosql_02_0009__en-us_topic_0000001092187204_li564614457308">Clear all records in the table. Example:<p id="nosql_02_0009__en-us_topic_0000001092187204_p4124133673816"><a name="nosql_02_0009__en-us_topic_0000001092187204_li564614457308"></a><a name="en-us_topic_0000001092187204_li564614457308"></a><strong id="nosql_02_0009__en-us_topic_0000001092187204_b83562404385">TRUNCATE test_keyspace.test_table;</strong></p>
</li><li id="nosql_02_0009__en-us_topic_0000001092187204_li1931831211318">Delete the entire table. Example:<p id="nosql_02_0009__en-us_topic_0000001092187204_p12912141519410"><a name="nosql_02_0009__en-us_topic_0000001092187204_li1931831211318"></a><a name="en-us_topic_0000001092187204_li1931831211318"></a><strong id="nosql_02_0009__en-us_topic_0000001092187204_b988016182430">DROP TABLE nosql.nosql_table;</strong></p> </li><li id="nosql_02_0009__en-us_topic_0000001092187204_li1931831211318">Delete the entire table. Example:<p id="nosql_02_0009__en-us_topic_0000001092187204_p12912141519410"><a name="nosql_02_0009__en-us_topic_0000001092187204_li1931831211318"></a><a name="en-us_topic_0000001092187204_li1931831211318"></a><strong id="nosql_02_0009__en-us_topic_0000001092187204_b988016182430">DROP TABLE test_keyspace.test_table;</strong></p>
</li></ul> </li></ul>
</li></ul> </li></ul>
</div> </div>

View File

@ -26,7 +26,7 @@
</td> </td>
<td class="cellrowborder" valign="top" width="53.39%" headers="mcps1.3.2.3.2.4.1.2 "><ul id="nosql_03_0014__ul107561326102518"><li id="nosql_03_0014__li694215511567">This tag value can be left blank.</li><li id="nosql_03_0014__li1275616267253">The value consists of up to 43 characters.</li><li id="nosql_03_0014__li10709616314">The value can only consist of digits, letters, underscores (_), hyphens (-), and at signs (@).</li></ul> <td class="cellrowborder" valign="top" width="53.39%" headers="mcps1.3.2.3.2.4.1.2 "><ul id="nosql_03_0014__ul107561326102518"><li id="nosql_03_0014__li694215511567">This tag value can be left blank.</li><li id="nosql_03_0014__li1275616267253">The value consists of up to 43 characters.</li><li id="nosql_03_0014__li10709616314">The value can only consist of digits, letters, underscores (_), hyphens (-), and at signs (@).</li></ul>
</td> </td>
<td class="cellrowborder" valign="top" width="28.07%" headers="mcps1.3.2.3.2.4.1.3 "><p id="nosql_03_0014__p47581826192520">nosql_01</p> <td class="cellrowborder" valign="top" width="28.07%" headers="mcps1.3.2.3.2.4.1.3 "><p id="nosql_03_0014__p47581826192520">geminidb_01</p>
</td> </td>
</tr> </tr>
</tbody> </tbody>

View File

@ -90,7 +90,7 @@
</tr> </tr>
<tr id="nosql_increase_storage1__row07425561575"><td class="cellrowborder" valign="top" width="21.709999999999997%" headers="mcps1.3.9.2.3.2.2.2.3.1.1 "><p id="nosql_increase_storage1__p1674225615714">Increase By</p> <tr id="nosql_increase_storage1__row07425561575"><td class="cellrowborder" valign="top" width="21.709999999999997%" headers="mcps1.3.9.2.3.2.2.2.3.1.1 "><p id="nosql_increase_storage1__p1674225615714">Increase By</p>
</td> </td>
<td class="cellrowborder" valign="top" width="78.29%" headers="mcps1.3.9.2.3.2.2.2.3.1.2 "><p id="nosql_increase_storage1__p1743856474">Percentage of the current storage to be automatically scaled. The value can be <strong id="nosql_increase_storage1__b15119510121219">10</strong>, <strong id="nosql_increase_storage1__b15120191001210">15</strong>, or <strong id="nosql_increase_storage1__b19121161041210">20</strong>. At least 100 GB is added each time.</p> <td class="cellrowborder" valign="top" width="78.29%" headers="mcps1.3.9.2.3.2.2.2.3.1.2 "><p id="nosql_increase_storage1__p1743856474">Percentage of the current storage to be automatically scaled. The value can be <strong id="nosql_increase_storage1__b1726568807">10</strong>, <strong id="nosql_increase_storage1__b1202106001">15</strong>, or <strong id="nosql_increase_storage1__b1867385200">20</strong>. If the value is not a multiple of 10, the value is rounded up. At least 100 GB is added each time.</p>
</td> </td>
</tr> </tr>
<tr id="nosql_increase_storage1__row1474312568711"><td class="cellrowborder" valign="top" width="21.709999999999997%" headers="mcps1.3.9.2.3.2.2.2.3.1.1 "><p id="nosql_increase_storage1__p13743205619710">Storage Limit</p> <tr id="nosql_increase_storage1__row1474312568711"><td class="cellrowborder" valign="top" width="21.709999999999997%" headers="mcps1.3.9.2.3.2.2.2.3.1.1 "><p id="nosql_increase_storage1__p13743205619710">Storage Limit</p>