반응형
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 | 29 |
30 | 31 |
Tags
- GIT
- Google Spreadsheet
- Apache
- Tkinter
- django
- Python
- SQL
- matplotlib
- Kotlin
- PostgreSQL
- Github
- 파이썬
- google apps script
- Java
- math
- PANDAS
- numpy
- c#
- array
- gas
- Excel
- Redshift
- Google Excel
- list
- string
- Mac
- PySpark
- dataframe
- hive
Archives
- Today
- Total
목록Hive view 삭제 (1)
달나라 노트
Hive : drop view if exists, create temporary view (temporary view 만들고 없애기)
drop view if exists test_temporary_table; create temporary view test_temporary_table as select current_date ; select * from test_temporary_table ; -> 결과 : 2020-12-17 drop view if exists test_temporary_table; drop view view_name은 어떤 이름의 view를 삭제하는데 사용됩니다. 여기에 if exists라는 키워드를 붙이면 해당 view가 존재한다면 삭제하고 존재하지않는다면 그냥 넘어가게됩니다. 즉, 존재하지 않는 view를 drop하려할 때 생기는 에러를 방지할 수 있죠. create temporary view test_tempo..
SQL/Apache Hive
2021. 6. 2. 01:28