MySQL Forums
Forum List  »  Portuguese

Dados lado a lado
Posted by: Fernando Fernando
Date: June 29, 2020 09:34AM

Boa tarde,

Tenho duas tabelas, cliente e telefone.

Na tabela cliente armazeno os dados referente ao mesmo. Na tabela telefone adiciono vários telefones dos clientes, quantos forem necessários.
Minha dúvida:
Como trazer numa consulta SQL todos os telefones de um determinado cliente, porém, um ao lado do outro. Ex.:

1 - João da Silva - (48)3445-4555 - (48)9 9944-7777 - (48)9 8855-3322

Lembrando que na tabela telefone gravo id_cliente e telefone. num relacionamento um pra muitos.

Obrigado.

Options: ReplyQuote


Subject
Views
Written By
Posted
Dados lado a lado
447
June 29, 2020 09:34AM
217
July 22, 2020 02:05PM


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.