I recommend you do a better modeling of the bank, creating a relational table for this case.
For example, a table between equipment and workers both have an identifier ID, to properly relate to a cardinality N for N relationship, it would be good to create a table equipamentos_trabalhadores
where there would be the id_equipamento
and the id_trabalhor
, this could relate N records, which can be accessed 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 their use varies depending on the desired programming language.
For using Phpmyadmin I imagine you should use PHP, so I will put a regular expression reference in PHP, but if not this function is available in all languages, follows reference:
http://www.devmedia.com.br/expressoes-regulares-em-php/25076
With this method one can pick up particles from a given text, thus being able to separate the ids who wishes, however, this way is not very suitable for this treatment.
You want to use these Ids to join with another table, that’s it?
– bfavaretto
That’s right @bfavaretto, I need to separate them to use in the relationship.
– adventistapr
The good thing was not to have this multivariate column if you can’t turn it into a new table, maybe this answer can help: What syntax to search with array as parameter in Mysql?
– rray