SQL 的一些批量插入和修改

 

Insert into Table2(a,b, c, d) select a,a*c,c,5 from Table1

 

update t1 
        set t1.c2 = t2.c2 
      from t2 
where t1.c1 = t2.c1 

posted @ 2010-10-31 12:06 BigRain 阅读(23) 评论(0) 编辑 收藏