반응형
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
- Redshift
- Google Excel
- PySpark
- gas
- hive
- PANDAS
- Kotlin
- array
- Mac
- 파이썬
- Github
- Excel
- django
- Apache
- list
- Java
- GIT
- matplotlib
- Google Spreadsheet
- google apps script
- math
- numpy
- Tkinter
- SQL
- c#
- string
- PostgreSQL
- Python
- dataframe
Archives
- Today
- Total
달나라 노트
Redshift : replace (텍스트 바꾸기) 본문
728x90
반응형
replace(text, old_text, new_text);
text에서 old_text를 new_text로 변환합니다.
select replace('123abc123', '1', 'z');
-> 결과 : z23abcz23
728x90
반응형
'SQL > Redshift' 카테고리의 다른 글
Redshift : TRIM, LTRIM, RTRIM (문자열의 공백 제거) (0) | 2020.12.17 |
---|---|
Redshift : concat, ||, + (문자열 합치기) (0) | 2020.12.17 |
Redshift : nullif (특정 값일 때 null값을 반환) (0) | 2020.12.17 |
Redshift : nvl, nvl2, coalesce (여러 값 중 null이 아닌 값 추출하기) (0) | 2020.12.17 |
Redshift : RANK, DENSE_RANK, ROW_NUMBER (순위, 컬럼번호 부여하기) (0) | 2020.12.17 |