请问使用InsertOrUpdate<T1>()时如何实现update set t1.[column] = t1.[column] + t2.[column] 这样的修改 #1995
Unanswered
twc1456744916
asked this question in
Q&A
Replies: 1 comment 4 replies
-
fsql.InsertOrUpdate().SetSource(list) 这样行不行? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
请问使用fsql.InsertOrUpdate().SetSource(list).ExecuteSqlBulkCopy();时如何实现update set t1.[column] = t1.[column] + t2.[column] 这样的修改
MERGE INTO [T1] t1 USING (select * from #temp_user1) t2 ON (t1.[id] = t2.[id])
WHEN MATCHED THEN
update set t1.[column] = t1.[column] + t2.[column]
WHEN NOT MATCHED THEN
insert (...)
values (...);
Beta Was this translation helpful? Give feedback.
All reactions