반응형
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
- math
- matplotlib
- 파이썬
- GIT
- gas
- hive
- Google Excel
- list
- Python
- Redshift
- dataframe
- Apache
- Tkinter
- PySpark
- Presto
- numpy
- PANDAS
- Excel
- django
- string
- PostgreSQL
- Google Spreadsheet
- c#
- Java
- Kotlin
- array
- SQL
- Github
- google apps script
Archives
- Today
- Total
목록json_extract_array_element_text (1)
달나라 노트
Redshift : json_extract_array_element_text() (Redshift에서 array indexing하기, array 선택하기, array 값 추출)
Redshift에서 json_extract_array_element_text() 함수는 indexing을 통해 array에서 값을 추출해줍니다. Syntax json_extract_array_element_text(json_array_text, index) 사용법은 위와 같습니다. json_array_text -> JSON array 형태로 된 text를 받습니다. index -> 추출할 index의 번호를 의미합니다. select '["apple", "banana", "pineapple", "peach"]' as json_arr_text , json_extract_array_element_text(json_arr_text, 0) as col0 , json_extract_array_element_text..
SQL/Redshift
2023. 8. 4. 19:27