I have a table with some columns arraged kinda like this:
Column a (type: INT)
Column b (type: TINYINT)
Column c (type: INT)
Column d (type: TEXT)
Column e (type: JSON)
I want to retrieve columns a
b
and c
where the column e
has the value x
somewhere in the list.
I'm using this command: SELECT a, b, c FROM table WHERE e LIKE x;
The problem is even if the value is there, the result from this query is []
. What am I doing wrong?
Edit: Made it work by going to this thread: How can write queries in MySQL that can parse JSON data in a column?