haitao · 2009-02-18 05:41:13 · 阅读: 328 使用表变量中转就只要1秒钟 declare @tb table(f varchar(100)) insert @tb select f1 from viewABC select distinct f from @tb 但是这个过程无法作为视图,因为含有declare。。。。。。。 看来的确是mssql的优化“弄巧成拙”!