반응형
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
- Github
- GIT
- django
- Redshift
- Tkinter
- 파이썬
- Java
- SQL
- matplotlib
- list
- hive
- Apache
- PANDAS
- c#
- dataframe
- Python
- array
- google apps script
- gas
- math
- Google Spreadsheet
- Google Excel
- string
- numpy
- PostgreSQL
- Excel
- Mac
- PySpark
- Kotlin
Archives
- Today
- Total
달나라 노트
Redshift : grant (table 권한 부여, grant permission) 본문
728x90
반응형
Redshift에서 어떤 Table에 대한 권한을 부여하기 위해선 grant 구문을 사용합니다.
Syntax
grant grant_option_for on table_name to user/role
구문은 대략적으로 위와 같습니다.
- grant_option_for
grant_option_for는 어떤 권한을 부여(grant)할지를 명시하는 부분입니다.
select
insert
update
delete
drop
references
alter
truncate
all
등이 있습니다.
- table_name
권한을 grant할 대상 table 이름을 명시합니다.
- user/role
어떤 user 또는 role에게 권한을 부여할지를 명시합니다.
grant select on test_table to test_user_1;
예시는 다음과 같습니다.
참고
https://docs.aws.amazon.com/ko_kr/redshift/latest/dg/r_GRANT.html
728x90
반응형
'SQL > Redshift' 카테고리의 다른 글
Comments