MySQL Forums
Forum List  »  Portuguese

SELECT com INSERT
Posted by: Gustavo Goulart
Date: October 26, 2013 09:06PM

Fala pessoal,

Peguei um sistema para manutenção que estou precisando mudar, tenho uma tabela CLIENTE com as seguintes colunas:

id, ddd1, tel1, ddd2, tel2, ddd3, cel1, ddd4, cel2.

Criei uma tabela TELEFONE com as seguintes colunas:

id_tel numero id_cli

Como posso usar um select na tabela CLIENTE, concatenar o ddd com o telefone e depois dar um insert na tabela TELEFONE?

Alguem pode me ajudar?

Options: ReplyQuote


Subject
Views
Written By
Posted
SELECT com INSERT
2713
October 26, 2013 09:06PM


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.