Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IF BEGIN END confusion
Message
 
 
À
16/06/2008 09:42:48
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01324368
Message ID:
01324387
Vues:
12
No, BEGIN is nothing like THEN. Unlike in VFP, only the first statemet after IF will be executed in T-SQL when IF condition is true. To execute more than one statement, you've to enclose them into BEGIN...END blok.



>So, the BEGIN is almost like THEN? The lines before the BEGIN always exectute, but those inside the BEGIN only execute if the IF condition is true? If that is the case, then my IF condition must not be true for the behavior I'm seeing.
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform