Skip to content

Commit 63082a2

Browse files
author
Alessandro Lenzen
committed
fix typos
1 parent 9db84bc commit 63082a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chapters/sql.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Now, you can create the table using the following statement:
3737

3838
create table user (id integer, name text, lastname text, phone text, password text);
3939

40-
Analyze the statement carefully. This statement creates a table called "user" with three columns. The first column is "id", and has the data type int, which means integer. The other columns are "name", "lastname", and "phone", which are of datatype text. In datatype integer, as you might guess, you can only store integers. In a datatype text, you can store strings. Put that statement in the SQL editor and hit the button "Run". If it was successful, you will see a green bar on top of the editor with the label "success". When you create tables in SQL, they are stored and become available to insert future data on them. However, in this online editor tables just survive in a single run, so in the same script we will have to create the table, insert the data, and query the data.
40+
Analyze the statement carefully. This statement creates a table called "user" with five columns. The first column is "id", and has the data type int, which means integer. The other columns are "name", "lastname", "phone", and "password", which are of datatype text. In datatype integer, as you might guess, you can only store integers. In a datatype text, you can store strings. Put that statement in the SQL editor and hit the button "Run". If it was successful, you will see a green bar on top of the editor with the label "success". When you create tables in SQL, they are stored and become available to insert future data on them. However, in this online editor tables just survive in a single run, so in the same script we will have to create the table, insert the data, and query the data.
4141

4242
So far we have created the table but it is empty. To insert a row, add the following statement:
4343

@@ -51,7 +51,7 @@ image::images/3image16.png[image,width=624,height=46]
5151

5252
Now, add the following line that will query the data you have inserted so far:
5353

54-
Select * from user;
54+
select * from user;
5555

5656
The * means that you want to see the content of all the columns. Hit Run.
5757

0 commit comments

Comments
 (0)