SQL SELECT Statement Tutorial and Book Giveaway Announcement
This article announces a monthly giveaway of the newly upgraded 5th edition of Ben Forta's SQL Essentials book, outlines its features, author background, and target readers, and provides a detailed tutorial on using the SELECT statement to retrieve single and multiple columns with example code.
The post announces a monthly book giveaway by the 爱可生开源社区, featuring the newly upgraded 5th edition of "SQL Essentials (SQL 必知必会)" by Ben Forta, sponsored by 图灵教育.
It describes the book’s sales, updates, challenge questions, author background, and target readers (SQL beginners, developers).
Chapter 2 Retrieving Data
This lesson introduces the SELECT statement for retrieving one or more columns from a table.
2.1 SELECT statement
SELECT statements consist of keywords; the most common is SELECT, used to fetch data from tables.
Example input:
SELECT prod_name
FROM Products;Analysis explains that this retrieves the prod_name column from the Products table.
Typical output shows the list of product names.
Tips about ending statements with semicolons and case‑insensitivity are included.
2.2 Retrieving a single column
Same as above, just selecting one column.
2.3 Retrieving multiple columns
To select several columns, list them after SELECT separated by commas.
Example input:
SELECT prod_id, prod_name, prod_price
FROM Products;Analysis and output illustrate the result set with three columns.
Additional notes discuss data formatting and display differences across DBMS.
Aikesheng Open Source Community
The Aikesheng Open Source Community provides stable, enterprise‑grade MySQL open‑source tools and services, releases a premium open‑source component each year (1024), and continuously operates and maintains them.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.