Skip to content

Commit 1637639

Browse files
committed
Improve chapter 10.
1 parent d6aee14 commit 1637639

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

10 - Database/01 - Connecting to a database.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Connecting to a database (server)
22

33
Connecting to MySQL, DB2, Derby, SQL Server, Oracle, PostgreSQL, Sybase, H2, sqlite, Google, ...
44

5-
1. Open the Database tool window (use Search Everywhere)
5+
1. Open the Database tool window (use Search Everywhere).
66
2. Create a new database connection. If you have MySQL installed, use MySQL.
77
3. Name the connection and connect to the MySQL server. Download MySQL driver files if they are not downloaded yet.
88
If you have a database in which to run these exercises, enter the database name as well. Otherwise leave the database

10 - Database/04 - Create New Table.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ CREATE TABLE workshop.attendee
1818
2. In the Database tool window, find the attendee.person_id column and create a foreign key to person.person_id.
1919
Enter "person" as the table name. The IDE will determine person__id is the column that should be used for the foreign key.
2020
3. Update the workshop_database.sql file with the current tables that are available in the database.
21-
This can be done by selecting the workshop database and using the Copy DDL action (Ctrl+Shift+C / Command+Shift+C)
21+
This can be done by selecting the workshop database and using the Copy DDL action (Ctrl+Shift+C / Command+Shift+C).

10 - Database/05 - Database tools in PHP.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
* Database tools in PHP
44
*/
55

6-
// 1. Create a new variable $query which holds the query "SELECT * FROM person"
7-
// Make sure to manually type the query and note the autocompletion support (use Ctrl+Space right after FROM)
6+
// 1. Create a new variable $query which holds the query "SELECT * FROM person".
7+
// Make sure to manually type the query and note the autocompletion support (use Ctrl+Space right after FROM).
88

99
$query = "";
1010

11-
// 2. Make the query a bit more complicated. Remember the JOIN smart completion? Use Ctrl+Shift+Space after the ON
11+
// 2. Make the query a bit more complicated. Remember the JOIN smart completion? Use Ctrl+Shift+Space after the ON.
1212

1313
$query = "SELECT person.name, city.name as city, country.name as nationality
1414
FROM person

0 commit comments

Comments
 (0)