Oracle 21c CREATE SYNONYMでシノニムを作成する

環境
Oracle Database 21c Express Edition Release 21.0.0.0.0

書式1
CREATE SYNONYM synonym FOR [schema2.]object
自分のスキーマ内にプライベート・シノニムを作成します

操作例

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
CREATE SYNONYM TTS FOR CFT.USER_MAST
CREATE SYNONYM TTS FOR CFT.USER_MAST
CREATE SYNONYM  TTS FOR CFT.USER_MAST

書式2
CREATE SYNONYM schema.synonym FOR [schema2.]object
他のユーザのスキーマ内にプライベート・シノニムを作成します。

操作例

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
CREATE SYNONYM "TM"."USE_MAST" FOR "TMS"."USE_MAST"
CREATE SYNONYM "TM"."USE_MAST" FOR "TMS"."USE_MAST"
CREATE SYNONYM "TM"."USE_MAST" FOR "TMS"."USE_MAST"

書式3
CREATE PUBLIC SYNONYM synonym FOR [schema2.]object
パブリック・シノニムを作成します。

操作例

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
CREATE PUBLIC SYNONYM synonyms FOR "TMS"."USE_MAST"
CREATE PUBLIC SYNONYM synonyms FOR "TMS"."USE_MAST"
CREATE PUBLIC SYNONYM synonyms FOR "TMS"."USE_MAST"

 

IT

Posted by arkgame