Basics
In the first section, I'd like to present the most basic aspects of how to extract data from a database. In this subsection, we will explore how to create a basic select from table, as well as look at what components the SELECT statement is creating.
The SELECT statement is built from at least three mandatory parts. The first part in the SELECT statement is the resulting set. The resulting set is a list of fields that state what we want to get from the selected table. For the resulting set, we can use a list of fields directly entered in the statement, or we can use * to get all fields in the table. However, using * is not recommended due to performance issues, as we often do not need all fields in a table – only a few of them. The ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access