You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by pt...@apache.org on 2022/12/12 10:10:25 UTC

[ignite-3] branch main updated: IGNITE-18368 Add more actions to getting started guide (#1433)

This is an automated email from the ASF dual-hosted git repository.

ptupitsyn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


The following commit(s) were added to refs/heads/main by this push:
     new 30903958a1 IGNITE-18368 Add more actions to getting started guide (#1433)
30903958a1 is described below

commit 30903958a1f3a5c56d522489a1be48422abbd28c
Author: IgGusev <de...@mail.ru>
AuthorDate: Mon Dec 12 12:10:21 2022 +0200

    IGNITE-18368 Add more actions to getting started guide (#1433)
---
 docs/_docs/quick-start/getting-started-guide.adoc | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/docs/_docs/quick-start/getting-started-guide.adoc b/docs/_docs/quick-start/getting-started-guide.adoc
index b88c4332b3..526c7d02ea 100644
--- a/docs/_docs/quick-start/getting-started-guide.adoc
+++ b/docs/_docs/quick-start/getting-started-guide.adoc
@@ -82,6 +82,27 @@ This command creates a simple cluster you can interact with. For example, you ca
 NOTE: If you have issues with Ignite 3 Alpha, check the logs in the `ignite3-db-3.0.0-beta1/log` folder.
 
 
+* Use the `CREATE TABLE` statement to create a new table:
++
+----
+sql "CREATE TABLE IF NOT EXISTS Person (id int primary key,  city varchar,  name varchar,  age int,  company varchar)"
+----
++
+* Fill the table with data by using `INSERT` statement:
++
+----
+sql "INSERT INTO Person (id, city, name, age, company) VALUES ('1', 'London', 'John Doe', '42', 'Apache')"
+sql "INSERT INTO Person (id, city, name, age, company) VALUES ('2', 'New York', 'Jane Doe', '36', 'Apache')"
+----
++
+* Get all data you inserted on previous step:
++
+----
+sql "SELECT * FROM Person"
+----
+
+NOTE: For more information about available SQL statements, see the link:sql-reference/ddl[SQL Reference] section.
+
 == Stopping the Cluster
 
 After you are done working on the cluster, you need to stop the node. Go to the `ignite3-db-3.0.0-beta1` folder and run the following command: