REFRESH FUNCTION
描述
REFRESH FUNCTION
语句会使缓存的函数条目失效,该条目包括给定函数的类名和资源位置。失效的缓存会立即填充。请注意,REFRESH FUNCTION
仅适用于永久函数。刷新原生函数或临时函数将导致异常。
语法
REFRESH FUNCTION function_identifier
参数
-
function_identifier
指定函数名称,可以是限定名称或非限定名称。如果未提供数据库标识符,则使用当前数据库。
**语法:**
[ database_name. ] function_name
示例
-- The cached entry of the function will be refreshed
-- The function is resolved from the current database as the function name is unqualified.
REFRESH FUNCTION func1;
-- The cached entry of the function will be refreshed
-- The function is resolved from tempDB database as the function name is qualified.
REFRESH FUNCTION db1.func1;