Select like (2 different parameters)

0

I have a table with several cars, I need to pick only the ones I need.

Example:
goal
fox
parati
kombi
voyage

I just want to get a goal and a kombi.

I'm using the following command to get where I have the GOL value in my table ...

SELECT * FROM 'volkswagen_base' WHERE link like '%gol%';

How do I get and display gol and estate values?

    
asked by anonymous 05.08.2015 / 19:39

1 answer

4

You can build your SQL like this:

SELECT * FROM volkswagen_base WHERE link LIKE '%gol%' OR link LIKE '%kombi%'
    
05.08.2015 / 19:42