Massimo Arnaudo wrote:
mysql> INSERT INTO gdo.ubicazioni (codice,referente,id_agente_ubi) SELECT new_tbl.codice,new_tbl.referente,agente.(SELECT agente.id_agente
^ Non puoi specificare il nome di un campo in questo modo.
FROM agente,new_tbl WHERE (agente.agente = new_tbl.agente)) FROM agente,new_tbl;
Quale campo della tabella agente vuoi metterci? -- asettico [ http://www.rossomaltese.it/ ] GPG fingerprint [ BA20 8C8D 7712 9D9A 57F3 A96A A7BE 905C 1CB9 26BA ]
-----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS/IT/O d++(-) s:+>: a34 C++$ ULAVH*++$>++++ P+ L+>++++ E--- W++(-) N(++) o? K-? w(---) !O M@ V@ PS+@ PE- Y? PGP->++ t+++ 5? X++ R tv+ b+ DI(+) D++(---) G(-)>-- e>++++ h---() r++ y+++* ------END GEEK CODE BLOCK------