MYSQL06: Selecting using where clause
Sometimes we only want to retrieve records with specific
field values, for this we use the WHERE clause in the sql statement.
SELECT (name, age) FROM students
WHERE age = 15;
this will return following result:
name
|
age
|
Joe
|
15
|
another example
SELECT (name, age) FROM students
WHERE age >= 15;
name
|
age
|
Joe
|
15
|
Rosy
|
17
|
Comments
Post a Comment