Let the storm money come!

exec 临时表,报错

    因为零时表只存在于一个exec 会话中,所以可以用 多个 select 返回到 dataset 中处理多个table,按照select 的顺序,读取 tables[0],table[1] ,

多用于统计,返回统计总数等等。

 

exec (@sql + ';select * from #tempTotal; select count(*) as TotalCount from #totalCountRecord')

  

posted @ 2014-10-09 21:24  精密~顽石  阅读(217)  评论(0编辑  收藏  举报
在通往地狱的路上,加班能使你更快到达。