摘要: 因为项目要求实现一次性同时更新多条不同的记录的需求,和同事讨论了一个比较不错的方案,这里供大家参考下。以下为测试例子。1.首先创建两张临时表并录入测试数据:View Code 1 create table #temptest1 2 ( 3 id int, 4 name1 varchar(50), 5 age int 6 ) 7 8 create table #temptest2 9 (10 id int,11 name1 varchar(50),12 age int13 )查询出此时的表数据为:#temptest1 #temptest2 2.... 阅读全文
posted @ 2011-10-26 18:22 WILLPAN 阅读(832) 评论(5) 推荐(0) 编辑