SQL WHERE Statement
WHERE statement for row selection.
- Just as we choose columns to specify a list of column names from one or more tables, we can select rows with the where statement
- You can use WHERE statement to select columns in several data handling occasions, as with UPDATE, DELETE and not at least SELECT statement.
- It is also possible to connect several tables together with a WHERE statement even though we have a own JOIN statement for this.
There are several alternative ways to select the table rows:
- Selection with Comparison operators (=, <, >, and so on).
- Selection with logical AND, OR, NOT.
- Selection with BETWEEN, NOT BETWEEN (from and to values).
- Selection with IN, NOT IN (list of values).
- Selection with LIKE, NOT LIKE (Used by text pattern search).
- Selection with IS NULL, IS NOT NULL (none existing, existing).
© 2010 by Finnesand Data. All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the
correctness in the pages or source codes.
The risk of using this web-site pages or any program
codes from this website is entirely at the individual user.