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