반응형
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
- 파이썬
- PostgreSQL
- PANDAS
- Google Excel
- Redshift
- string
- matplotlib
- dataframe
- c#
- GIT
- django
- SQL
- Github
- array
- Mac
- numpy
- gas
- Apache
- Excel
- Kotlin
- Java
- hive
- math
- Google Spreadsheet
- PySpark
- Python
- google apps script
- list
- Tkinter
Archives
- Today
- Total
목록json_extract_path_text (1)
달나라 노트
Redshift : json_extract_path_text() (Redshift에서 JSON data 참조하기, Redshift dictionary)
Redshift에서 json_extract_path_text() 함수를 사용하면 JSON 형태로 존재하는 text를 JSON을 다루듯이 사용할 수 있습니다. Syntax json_extract_path_text(json_text, key1, key2, ...) 사용법은 위와 같습니다. 첫 번째 인자로 JSON 형태의 텍스트를 받습니다. 그리고 두번째부터는 JSON에 있는 key값을 적어주면 됩니다. select '{"apple": 20000, "banana": 8000, "peach": 22000}' as json_string , json_extract_path_text(json_string, 'apple') --> 20000 , json_extract_path_text(json_string, 'bana..
SQL/Redshift
2023. 8. 4. 19:11