This chapter will explain the SELECT and the SELECT * statements.
The SELECT statement is used to select data from a database.
The result is stored in a result table, called the result-set.
and
Note: SQL is not case sensitive. SELECT is the same as select.
The "Persons" table:
Now we want to select Content of the columns named "LastName" and "FirstName" from the table above.
We use the following SELECT statement:
The result-set will look like this:
Now we want to select all the columns from the "Persons" table.
Hint: The asterisk (*) is a quick way of selecting all columns
Most database software systems allow navigation in the result-set with programming functions, like: Move-To-First-Record, Get-Record-Content, Move-To-Next-Record, etc.
Programming functions like these are not a part of this tutorial. To learn about accessing data with function calls, please visit our ADO tutorial or our PHP tutorial.
Your Query was successfully sent!