Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proper syntax for bulk insert based on group by
Message
De
21/04/2015 09:42:00
 
 
À
21/04/2015 09:29:19
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:
01618857
Message ID:
01618858
Vues:
34
Ok, I am executing this every day so this was simply this:
INSERT INTO DetailMember (AddUser,AddDate,ModUser,ModDate,NoMember,NoView,[Enabled],NoDetail,[Order])
 SELECT 1,'2015-04-19 17:17:47.000',1,'2015-04-19 17:17:47.000',DetailMember.NoMember,DetailMember.NoView,1,7,99
 FROM DetailMember
 GROUP BY DetailMember.NoMember,DetailMember.NoView
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