Instruction « DROP VIEW » (dropViewStatement)
Syntaxe
%%{init: {
'theme': 'base',
'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
'themeVariables': {
'fontSize': '11px',
'fontFamily': 'Arial'
}
}}%%
flowchart LR
dropViewStatement_start((START))
dropViewStatement_start --> dropViewStatement_0_0['DROP']:::quoted
dropViewStatement_0_0 --> dropViewStatement_0_1['VIEW']:::quoted
dropViewStatement_0_1 --> dropViewStatement_0_2[tableIdentifier]
dropViewStatement_0_2 --> dropViewStatement_end((END))
Objet
L'instruction « drop view » supprime une vue du dictionnaire de données. Une fois l'opération terminée, la View ne peut plus être utilisée par les requêtes en cours d'exécution.
Lorsque l'on utilise la clause « if exists » (disponible avec 25.0.41 et 24.0.778), la vue n'est supprimée que si une version antérieure de la vue portant le même nom existe.