L
L
LobsterJoe2018-02-19 23:50:39
MySQL
LobsterJoe, 2018-02-19 23:50:39

MySQL and a list of values ​​in a table field. How to build a selection by condition?

There are tables like id, avID, value. The value field can contain both single values ​​and a comma-separated list of values.
There is a task to receive avID where value is equal to a certain variable.
Queries like:
SELECT avID FROM `atMultiPageSelector` WHERE VALUE LIKE '$param'
return an empty value.
Please tell me how to make a request.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Korobkov, 2018-02-20
@LobsterJoe

The value field can contain both single values ​​and a comma-separated list of values.

You don't have to be shitty. Make a normal structure .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question