Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
INSERT INTO with condition
Message
De
21/08/2014 17:24:31
 
 
À
21/08/2014 17:08:56
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2012
Application:
Web
Divers
Thread ID:
01606222
Message ID:
01606226
Vues:
62
>Right, yes, you can use a CASE
>
>
>insert into MyTable  (Column1, Column2, Column3 )
>   select    case when SomeColumn = 'Use Column1a' then Column1a else Column1b end as Column1,   Column2, Column3 From SomeOtherTable
>
Thanks
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
Répondre
Fil
Voir

Click here to load this message in the networking platform