Databases for Windows  /   Database Blog  /   Organizer Advantage, Handy Library, SQL Tutor   /  SQL Select
28/05/2024

SQL Tutor: The SELECT statement


The SELECT statement

The SELECT statement is used to select the data from a table or a group of tables.

SELECT syntax

You can select some data fields from the table.

SELECT columnname1, columnname2 FROM table_name;

You can select all the fields available in the table, in this case use "*".

SELECT * FROM table_name;

SELECT statement examples

The below SELECT statement displays book’s titles with authors from the library table.

SELECT title, author FROM library;

The below SELECT statement displays all data fields from the library table.

SELECT * FROM library;

Copyright © 2024 · All Rights Reserved · PrimaSoft PC