Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update from inner SQL
Message
De
01/03/2011 18:42:32
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
À
01/03/2011 18:35:26
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:
01502274
Message ID:
01502289
Vues:
25
I don't know which version of sqlAnywhere you are using but I just checked in version 11 and the alias syntax seems to work fine.

>>I now prefer using this syntax:
>>
>>;with cteToUpdate (select goes here)
>>
>>select * from cteToUpdate -- if this works OK, then comment it
>>
>>update cteToUpdate set ...
>>
>>
>>
>>This is SQL Server proprietary code.
>
>I am not familiar with the "with" syntax. Could you elaborate more on it? Basically, I am looking at one SQL. I do not want to execute something in SSMS, for example, from various commands in a row. So, I am interested to know if there is a more conventional syntax we should use in those circumstances.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform