반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- PANDAS
- Apache
- Google Spreadsheet
- dataframe
- django
- Kotlin
- array
- Excel
- Tkinter
- google apps script
- string
- gas
- math
- numpy
- c#
- list
- Python
- PostgreSQL
- Mac
- Java
- GIT
- Github
- Redshift
- PySpark
- SQL
- 파이썬
- Google Excel
- hive
- matplotlib
Archives
- Today
- Total
달나라 노트
Hive : table 복구 불가능하게 drop하기. drop table ~ purge 본문
728x90
반응형
일반적으로
drop table (if exists) <table_name>
위처럼 drop table 구문을 사용하면 table이 drop되긴 하지만
휴지통 directory에 해당 table이 이동되며
drop된 table을 복구할 수 있습니다.
drop table (if exists) <table_name> purge
그런데 위처럼 drop table 구문의 가장 끝에 purge를 적어주면
table drop 시에 휴지통 directory로 이동하지 않고 완전히 table이 삭제되며
이 경우 table 복구가 불가능합니다.
728x90
반응형
'SQL > Apache Hive' 카테고리의 다른 글
Comments