- 카테고리:
문자열 및 이진 함수 (AI 함수)
AI_REDACT¶
비정형 텍스트 데이터의 개인 식별 정보(PII)를 수정합니다.
구문¶
AI_REDACT( <input> [, <categories> ] [, <return_error_details> ] )
인자¶
필수:
inputPII(개인 식별 정보)를 포함할 수 있는 텍스트 데이터가 포함된 VARCHAR 값입니다.
선택 사항:
categories수정할 PII 유형을 지정하는 문자열 값의 ARRAY입니다. 지정하지 않으면 지원되는 모든 PII 카테고리가 수정됩니다. 지원되는 카테고리 목록은 PII 카테고리 감지 섹션을 참조하세요.
Passing an unsupported category results in an error.
return_error_detailsA BOOLEAN flag that indicates whether to return error details in case of error. When set to TRUE, the function returns an OBJECT that contains the value and the error message, one of which is NULL depending on whether the function succeeded or failed.
Requires that the session parameter
AI_SQL_ERROR_HANDLING_USE_FAIL_ON_ERRORto be set to FALSE.
반환¶
Generally, a VARCHAR containing placeholder values in place of redacted PII, such as [NAME] where the input text had “John Smith”.
If the session parameter AI_SQL_ERROR_HANDLING_USE_FAIL_ON_ERROR is set to FALSE and the optional argument
return_error_details is set to FALSE or is not passed, and the function cannot process the input, the function returns NULL.
If the session parameter AI_SQL_ERROR_HANDLING_USE_FAIL_ON_ERROR is set to FALSE and the optional argument
return_error_details is set to TRUE, the function returns an OBJECT with the following fields:
value: A VARCHAR value that contains the redacted text, or NULL if an error occurred.
error: A VARCHAR value that contains the error message if an error occurred, or NULL if the function succeeded.
사용법 노트¶
AI_REDACT로 수정할 수 있는 PII 카테고리의 경우 PII 카테고리 감지 섹션을 참조하세요.
현재 AI_REDACT 버전의 제한 사항에 대해서는 제한 사항 섹션을 참조하세요.
예¶
예 섹션을 참조하십시오.