このプロシージャは、テーブルまたはプロシージャの完全修飾名を引用し、それがシステム メタデータに存在するかどうかをチェックし、名前の大文字小文字を調整し、オプションとしてオブジェクトが存在しない場合にエラーをスローします(これがソース テーブル/プロシージャである場合に役立つ場合があります)。

Parameters

Parameter

Description

tableName

Table/procedure name, requires a fully-qualified object name. The name will be quoted using the specified casing if the object does not exist. If it exists, the casing will be adjusted accordingly; mandatory

tableDescription

Text description of the object. Used in error messages only to distinguish the object for convenience

checkExists

If set to TRUE, the procedure will fail with an error in case the object does not exist

isTable

Whether the object is a table or a procedure; default: TRUE

Usage

CALL UTILS.formatTableName(
tableName => 'datasource.tablename',
tableDescription => 'target',
checkExists => TRUE,
isTable => TRUE  
);;