Can I use two where clauses, like "SELECT * FROM table WHERE something and something"? Can I use two where clauses, like "SELECT * FROM table WHERE something and something"? sql sql

Can I use two where clauses, like "SELECT * FROM table WHERE something and something"?


$query = "SELECT * FROM products WHERE products.colors LIKE '%black%' AND products.category = 'bracelet'";

There you go.


You can do:

SELECT * FROM products WHERE colors LIKE '%black%' AND category = 'bracelet'