Section 24.4.1 Basic SELECT Query

• The basic form of a query (p. 1052) is

  SELECT * FROM tableName

where the asterisk (*; p. 1052) indicates that all columns from tableName should be selected, and tableName specifies the table in the database from which rows will be retrieved.

• To retrieve specific columns, replace the * with a comma-separated list of column names.

Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.