반응형
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
- matplotlib
- Github
- 파이썬
- PySpark
- hive
- Redshift
- c#
- SQL
- gas
- math
- google apps script
- list
- PostgreSQL
- Python
- Excel
- Presto
- PANDAS
- Java
- Kotlin
- django
- Google Excel
- string
- Tkinter
- Google Spreadsheet
- array
- Apache
- numpy
- dataframe
- GIT
Archives
- Today
- Total
달나라 노트
Redshift : table 생성 일시 추출, table 생성 시점 추출 본문
728x90
반응형
Table의 생성 시점을 보기 위해선 아래 query를 실행하면 됩니다.
select nspname as schema_name
, relname as table_name
, relcreationtime as creation_time
from pg_class_info as pci
--
left join pg_namespace as pns
on pns.oid = pci.relnamespace
--
where pci.reltype != 0
and pns.nspname = 'schema_name'
and pci.relname = 'table_name'
;
728x90
반응형
'SQL > Redshift' 카테고리의 다른 글
| Redshift : json_extract_path_text() (Redshift에서 JSON data 참조하기, Redshift dictionary) (0) | 2023.08.04 |
|---|---|
| Redshift : last_day() (특정 날짜가 속한 월의 가장 마지막 날짜 return) (0) | 2023.02.23 |
| Redshift : pg_tables (table 종류, owner 종류 추출) (0) | 2023.01.31 |
| Redshift : set timezone (timezone 설정, 시간대 설정) (0) | 2023.01.31 |
| Redshift : alter table ~ drop column ~ (column 삭제, column 제거) (0) | 2022.10.19 |
Comments