1
I’m trying to make a SELECT
to select 2 different columns from the same table, example:
id | name | tags
-----------------------------------
1 | acao | null
2 | aventura | null
3 | rpg | acao,aventura
I tried so many ways to do this SELECT
but I couldn’t get it to work:
SELECT * FROM jogos WHERE
name LIKE "%acao%",
tags LIKE "%acao%"
I want that when researched "acao" return this way:
id | name | tags
-----------------------------------
1 | acao | null
3 | rpg | acao,aventura
I have no idea how else to make it work.
Not missing the OR operator, right? SELECT * FROM games WHERE name LIKE "%acao%" OR tags LIKE "%acao%"
– Vinícius