Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Debugging a WHILE EXISTS
Message
 
À
02/11/2008 15:35:24
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01358902
Message ID:
01359033
Vues:
28
>>Isn't it the same as:
>>
>>UPDATE Relation SET NoField  = CASE WHEN Field = Field.Field
>>                                         THEN Field.Numero
>>                                    ELSE NoField END,
>>                    NoField2 = CASE WHEN Field = Field.Field2
>>                                        THEN Field.Numero
>>                                   ELSE NoField2 END
>>FROM Relation
>>INNER JOIN Field ON (Ralation.Field = Field.Field OR Relation.Field2 = Field.Field2)
>>
>
>Yes, it is, but I want to have it in a loop.

Maybe I'm missing something here, but the loop will slow down the whole operation.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform