Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update from inner SQL
Message
From
01/03/2011 18:35:26
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01502274
Message ID:
01502284
Views:
20
>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.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform