April 2026
Intermediate
1009 pages
34h 15m
English
The simplest form of query is the following:
SELECT * FROM entry
This query selects (SELECT) everything (*) from (FROM) the table and returns it (see Table 17.4).
|
id |
name |
|
date |
entry |
|---|---|---|---|---|
|
1 |
Christian |
christian@xy.zzz |
2025-01-01 |
A warm welcome! The guestbook is open. |
|
2 |
Tobias |
tobias@xy.zzz |
2025-01-02 |
This isn't exactly the place to be ... |
|
3 |
Christian |
christian@xy.zzz |
2025-01-03 |
There is some truth in that. |
Table 17.4 Result of the "SELECT" Query
This is fast, simple—and of course not at all performant, because everything really is returned.
If you only need parts of the data, you should explicitly specify the columns you would like to have. To stay with the guestbook ...
Read now
Unlock full access