반응형
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
- gas
- PANDAS
- SQL
- Python
- 파이썬
- Redshift
- dataframe
- c#
- numpy
- hive
- django
- PySpark
- Google Excel
- list
- Java
- Apache
- google apps script
- matplotlib
- Google Spreadsheet
- Mac
- Tkinter
- string
- GIT
- Excel
- PostgreSQL
- math
- array
- Kotlin
- Github
Archives
- Today
- Total
목록position (1)
달나라 노트
Redshift : position (문자열에서 특정 문자 위치 찾기)
position(text1 in text2) Redshift의 position 함수는 위처럼 사용할 수 있으며 text1을 text2에서 찾아 그 위치를 반환합니다. selectposition('a' in 'abcde') ; - Result 1 selectposition('b' in 'abcde') ; - Result 2 selectposition('c' in 'abcde') ; - Result 3 selectposition('d' in 'abcde') ; - Result 4 selectposition('e' in 'abcde') ; - Result 5 위 예시를 보면 이해가 쉽습니다. a, b, c, d, e라는 각각의 문자를 'abcde'라는 문자열에서 찾아 그 위치를 반환해줍니다. 가장 첫번째 위치..
SQL/Redshift
2021. 1. 2. 02:07