Drop View 문 (dropViewStatement)
구문
%%{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))
목적
DROP VIEW 문은 데이터 사전에서 뷰를 제거합니다. 완료된 후에는 시작된 쿼리에서 해당 뷰를 더 이상 사용할 수 없습니다.
IF EXISTS 절(25.0.41 및 24.0.778에서 사용 가능)을 사용하는 경우, 동일한 이름의 뷰에 대한 이전 버전이 존재할 때에만 뷰가 삭제됩니다.