SQLite SELECT Statement
The SELECT Statement
The SELECT statement gets data from a table. The data comes back as a result table, called the result set.
This example selects the CustomerName, City and Country columns from the Customers table:
Select All Columns
To select all the columns, without writing every column name, use SELECT *:
Select a Calculation
A column in the result does not have to be a column in the table. You can also select a calculation. This example shows each price with 25% added:
SELECT Without a Table
In SQLite, you can use SELECT without a table, for example to do a calculation:
This also works for functions. sqlite_version() returns the version of SQLite: