Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete from Inner Join
Message
De
16/01/2013 15:18:36
 
 
À
16/01/2013 15:12:40
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01563007
Message ID:
01563009
Vues:
65
This message has been marked as the solution to the initial question of the thread.
>I have a need to delete from a inner join.
>
>This is the original SQL command:
>
>
>SELECT * FROM ListMemberField
> INNER JOIN ListField ON ListMemberField.NoListField=ListField.Numero
> WHERE ListField.NoList=143
>
>
>This gives 22 records.
>
>I basically need to delete those 22 records by adjusting the SQL command for a delete syntax.

should be something like (off the top of my head):
DELETE ListMemberField
FROM ListMemberField INNER JOIN ListField ON ListMemberField.NoListField=ListField.Numero
WHERE ListField.NoList=143
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform