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;