MySQL Forums
Forum List  »  Portuguese

Select com Array
Posted by: Leandro Diniz
Date: April 19, 2022 11:07AM

Gostaria de saber se é possível fazer um select em um campo com array no formato 1|3.


Tenho uma tabela USUARIOS e outra EMPRESAS, na tabela USUARIOS tenho um campo onde gravo as empresas que esse usuário tem relacionamento, ficando assim;

TABELA USUARIOS
ID - Nome - Empresas
01 - Zé - 1|3


TABELA EMPRESAS
ID - Nome
01 - Bradesco
03 - Itau


Gostaria que o resultado fosse esse

ID - Nome - Empresas
01 - Zé - Bradesco, Itaú

Options: ReplyQuote


Subject
Views
Written By
Posted
Select com Array
314
April 19, 2022 11:07AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.