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