I recommend that you do a better modeling of the database, creating a relational table for that case.
For example, a table between equipment and workers both have an identifier ID , to relate appropriately with a cardinality N to N it would be nice to create a
equipamentos_trabalhadores
table where there would be
id_equipamento
and
id_trabalhor
, this could relate N records, and can be queried only by
id_equipamento
or
id_trabalhor
thus making access easier and faster.
But if you want to continue with this modeling, you can bring all the data to the programming, or to the query, and use regular expression methods that vary depending on the programming language you want.
In order to use PhpMyAdmin, I imagine that I should use PHP, so I will put a regular expression reference in PHP, but if it is not this function is available in all languages, it follows reference:
link
With this method you can get particles of a certain text, so you can separate the ids you want, but this is not very suitable for this treatment.