MySQL Forums
Forum List  »  Italian

Re: Selezione record che non sono contenuti nella tabella
Posted by: Michele Abbondanza
Date: January 15, 2009 04:15AM

ciao!
per la prima select ti consiglierei di fare un outer join, che non essendo implementata in mysql dovrebbe avere più o meno una struttura del genere:

select i.CODINV2
from cespri.invanag i
LEFT JOIN cespri.address_response a ON i.CODINV2 = a.CODINV2
UNION
select i.CODINV2
from cespri.address_response a
LEFT JOIN cespri.invanag i ON a.CODINV2 = i.CODINV2


per la seconda dovresti spiegarti meglio, e darci la struttura delle tabelle da aggiornare..

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Selezione record che non sono contenuti nella tabella
3344
January 15, 2009 04:15AM


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.