Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select and Update
Message
De
30/11/2010 17:14:07
 
 
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:
01491203
Message ID:
01491208
Vues:
55
>
>
>--SELECT Color.Title_E,Color2.Title_E AS Title_E2,Color,Color2 FROM RepairOrder
>
>UPDATE RepairOrder FROM RepairOrder
>    SET Color2  = Color2.Title_E , Color = Color.Title_E
> LEFT JOIN Color ON RepairOrder.NoColor=Color.Numero
> LEFT JOIN Color AS Color2 ON RepairOrder.NoColor2=Color2.Numero
>
>
>BTW, why are you using char(40) instead of varchar(40) ?

This seems like an interesting approach. I tried it and got: "Incorrect syntax near the keyword 'FROM'" however.

I am using Char(40) presently just to be conform with what I already have. At one point, I will do a massive update on some structures and will take care of that.
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform