gpt4 book ai didi

sql - SQL Server 上的存储过程 "recompile"意味着什么?

转载 作者:行者123 更新时间:2023-12-02 18:44:27 24 4
gpt4 key购买 nike

在 SQL Server 上“重新编译”存储过程意味着什么?这应该是手动过程还是自动化过程?这个过程的优点和缺点是什么?谢谢!

最佳答案

这完全是 SQL Server 中的内部操作。

As a database is changed by such actions as adding indexes or changing data in indexed columns, the original query plans used to access its tables should be optimized again by recompiling them

这是MSDN's article on Recompiling Stored Procedures

当您发出 ALTER PROC 语句时,还会导致存储过程重新编译。

关于sql - SQL Server 上的存储过程 "recompile"意味着什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6618061/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com