SQL/Redshift

Redshift : table 생성 일시 추출, table 생성 시점 추출

CosmosProject 2023. 1. 31. 19:35
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
반응형