반응형
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
- django
- 파이썬
- Apache
- Presto
- Google Excel
- gas
- Github
- array
- Redshift
- hive
- SQL
- Tkinter
- list
- Excel
- PostgreSQL
- c#
- math
- GIT
- matplotlib
- PySpark
- google apps script
- string
- Google Spreadsheet
- Java
- Kotlin
- dataframe
- PANDAS
- numpy
- Python
Archives
- Today
- Total
목록Query (5)
달나라 노트
Redshift : substring (문자열 추출하기)
어떤 문자열 안에 있는 내부 문자열을 추출하고싶다면 substring 함수를 사용할 수 있습니다. Syntax substring(text, position1, position2) Syntax는 위와 같습니다. text에서 position1(숫자)에 적힌 위치로부터 position2(숫자) 만큼의 길이의 텍스트를 추출합니다. select substring('CONGRATULATIONS', 1, 1); --> 1. C select substring('CONGRATULATIONS', 1, 2); --> 2. CO select substring('CONGRATULATIONS', 2, 1); --> 3. O select substring('CONGRATULATIONS', 2, 3); --> 4. ONG selec..
SQL/Redshift
2021. 9. 13. 19:00