Ciao a tutti
Ho due tabelle tab1-tab2 e ne devo creare una terza tab3, ho provato così ma non funziona.
CREATE tab3 SELECT Id, nome , cognome
FROM tab1
UNION
SELECT Id, nome, cognome
FROM tab2
Grazie
Ciao a tutti
Ho due tabelle tab1-tab2 e ne devo creare una terza tab3, ho provato così ma non funziona.
CREATE tab3 SELECT Id, nome , cognome
FROM tab1
UNION
SELECT Id, nome, cognome
FROM tab2
Grazie
indicare il db come da regolamento indicare il db come da regolamento indicare il db come da regolamento indicare il db come da regolamento indicare il db come da regolamento indicare il db come da regolamento indicare il db come da regolamento indicare il db come da regolamento indicare il db come da regolamento indicare il db come da regolamento indicare il db come da regolamento![]()
Scusate mysql.
Tab 3 deve essere la concatenazione in verticale delle altre 2 ?
codice:Create table Tab3 as select * from ( select Id, nome , cognome from tab1 UNION select Id, nome , cognome from tab2 )
Ok grazie.