반응형
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 |
Tags
- Excel
- Google Excel
- Apache
- numpy
- Redshift
- math
- array
- Python
- c#
- GIT
- Kotlin
- dataframe
- django
- list
- gas
- PySpark
- PANDAS
- Github
- PostgreSQL
- SQL
- Google Spreadsheet
- string
- matplotlib
- 파이썬
- Mac
- hive
- Java
- Tkinter
- google apps script
Archives
- Today
- Total
목록interval (1)
달나라 노트
Presto : interval (날짜 시간 더하기. 날짜 시간 빼기)
Presto에서 날짜나 시간을 더하고 빼기 위해선 interval 함수를 사용하면 됩니다. select current_date, --> 2022-01-14 timestamp '2022-01-14 15:23:43' + interval '1' second, --> 2022-01-14 15:23:44 timestamp '2022-01-14 15:23:43' - interval '1' second, --> 2022-01-14 15:23:42 timestamp '2022-01-14 15:23:43' + interval '1' minute, --> 2022-01-14 15:24:43 timestamp '2022-01-14 15:23:43' - interval '1' minute, --> 2022-01-14 15:2..
SQL/Presto
2022. 1. 14. 19:21