Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DELETE With SQL JOIN
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01315895
Message ID:
01315906
Vues:
19
Thanks Sergey!


>
>DELETE InvLines FROM InvLines ;
>    JOIN InvMast ON InvMast.ivl_Invoice = InvLines.ivl_Invoice ;
>	      WHERE InvMast.ivm_Batch = sBatchId
>
>
>>How do I do this with a JOIN:
>>
>>
>>
>>** Delete the invoice line item records
>>DELETE FROM InvLines;
>>    WHERE ivl_Invoice IN;
>>         (SELECT ivm_Invoice;
>>	      FROM InvMast;
>>	      WHERE ivm_Batch = sBatchId)
>>
>>
>>
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform