OBJECT_EXISTS
Syntax
%%{init: {
'theme': 'base',
'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
'themeVariables': {
'fontSize': '11px',
'fontFamily': 'Arial'
}
}}%%
flowchart LR
Start((START)) --> OBJECT_EXISTS[OBJECT_EXISTS]:::quoted
OBJECT_EXISTS --> End((END))
Doel
De SQL-functie OBJECT_EXISTS bepaalt of een object, zoals een tabel, in het Data Dictionary voorkomt.
Parameters:
- Naam (
varchar2): naam van het object, eventueel inclusief een Alias voor een Datacontainer.
Teruggegeven waarde: of het object bestaat als een boolean.
Voorbeelden
In het volgende voorbeeld wordt nagegaan of de tabel dual in het Data Dictionary voorkomt:
select object_exists('dual@DataDictionary')
-------------------
true
In het volgende voorbeeld wordt nagegaan of de tabel nonsense in het Data Dictionary voorkomt:
select object_exists('nonsense@DataDictionary')
-------------------
false