Sybase:存储过程中采用临时表存储统计数据

Sybase:存储过程中采用临时表存储统计数据

作用

很有效的提升统计查询速度,对于数据量亿级、千万级多表之间关联查询,非常有效;

使用

--无需定义临时表,直接使用
--自动释放临时表
select ... into #tmp from yourtable ...
select name from #temp_tab;
原文地址:https://www.cnblogs.com/lizm166/p/8483482.html