MySQL Forums
Forum List  »  Italian

Re: Problema sul restore
Posted by: Michele Abbondanza
Date: October 14, 2008 02:55AM

Ciao, io non ho capito bene il tuo problema, o meglio ho capito qual'è ma non capisco quale sia il problema di fare una union su tabelle con campi non omogenei.
la sinstassi di una union è:

SELECT
test.nome
FROM
(
SELECT ID,nome FROM a
UNION ALL
SELECT ID,nome FROM b
) AS test

se a questo punto b non avesse il nome basterebbe fare la seconda select in questo modo:
SELECT ID,null FROM b

non ti preoccupare della lunghezza, anzi è più apprezzabile un testo lungo ma che spiega esattamente il problema che un post corto con pochi elementi,se non ho capito io qual'è il problema scrivi pure, il forum è fatto apposta!

Options: ReplyQuote


Subject
Views
Written By
Posted
4359
d d
October 13, 2008 02:24AM
Re: Problema sul restore
2753
October 14, 2008 02:55AM


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.