I will use some examples to show how the stuff is going to work. You just replace your table names and field names.
Using SELECT
Using SELECT
SELECT * FROM pets WHERE name LIKE '%T%' AND gender LIKE 'Female';
SELECT * FROM pets WHERE (breed LIKE 'cat' AND gender LIKE 'male') OR (breed LIKE 'dog' AND gender LIKE 'male');
Order By
SELECT * FROM pets ORDER BY dateofbirth;
SELECT * FROM pets ORDER BY gender DESC;
Limit
SELECT * FROM pets LIMIT 3;
SELECT * FROM pets LIMIT 2, 5;
SELECT * FROM pets LIMIT 2, 5;
No comments:
Post a Comment