现有语句,with ttemp as (select col1 from table1 where ....) select * from ttemp
网上说提示materialize后会创建临时表,
现有部分应用创建临时表后能提升性能,就是不知道怎样写语句来提示 materialize请各位大侠帮忙了
网上说提示materialize后会创建临时表,
现有部分应用创建临时表后能提升性能,就是不知道怎样写语句来提示 materialize请各位大侠帮忙了
是的,但是临时表要手动删除,他说提示materialize后会强制创建临时表,我想会不会达到一样的效果,同时又免去手动删除临时表的麻烦谢谢
Drop #Table并不会花费多少资源。
呵呵 但是页面查询时 每次都建临时表 比较不爽就没人用过 materialize 么?