반응형
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
- array
- Kotlin
- Excel
- hive
- c#
- Presto
- SQL
- PostgreSQL
- Redshift
- google apps script
- Python
- matplotlib
- Google Excel
- gas
- Tkinter
- PANDAS
- numpy
- 파이썬
- Github
- GIT
- list
- PySpark
- string
- dataframe
- django
- Google Spreadsheet
- math
- Java
- Apache
Archives
- Today
- Total
달나라 노트
Redshift : current_user (현재 사용중인 user id 출력) 본문
728x90
반응형
Redshift에서 현재 query를 돌리는 user를 알고 싶으면 current_user를 사용하면 됩니다.
select current_user
;
-- Result
test_user_1
728x90
반응형
'SQL > Redshift' 카테고리의 다른 글
| Redshift : REGEXP_SUBSTR() (정규표현식 추출, 패턴 문자 추출, Regular Expression Substring) (0) | 2024.05.02 |
|---|---|
| Redshift : current_database (현재 database 이름 출력) (0) | 2024.04.04 |
| Redshift : svv_all_schemas (Database에 있는 schema 종류 보기) (0) | 2024.04.01 |
| Redshift : to_timestamp() (timestamp로 변환) (0) | 2023.10.10 |
| Redshift : next_day() (다음 특정 요일의 날짜) (0) | 2023.09.20 |
Comments