SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Merge (Sql 2008)

 
Reply to topic    SoftTree Technologies Forum Index » Tips & Snippets Repository View previous topic
View next topic
Merge (Sql 2008)
Author Message
judahr



Joined: 09 Mar 2007
Posts: 319
Country: United States

Post Merge (Sql 2008) Reply with quote
--cause I never remember the syntax
MERGE $OBJECT$ AS p
USING (SELECT
FROM ) AS s
ON
WHEN Matched THEN
UPDATE
SET $COLUMNS_V$= ,
WHEN NOT matched THEN
INSERT $COLUMNS$
VALUES s.;
Thu Jul 07, 2011 5:17 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » Tips & Snippets Repository All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.