fletchsod
Programmer
- Dec 16, 2002
- 181
How do I use Common Table Expression (CTE) that would not only insert data into a table but update a row if the data exist?
Sort of like MERGE feature or the IF MATCH THEN UPDATE ELSE INSERT feature.
I tried with the MERGE but it doesn't seem to be supported.
I"m using Sql-2008.
Thanks...
Sort of like MERGE feature or the IF MATCH THEN UPDATE ELSE INSERT feature.
I tried with the MERGE but it doesn't seem to be supported.
I"m using Sql-2008.
Thanks...