728x90
반응형
-- 샘플 파티션 테이블 생성
create table test_aaaaa (
col1 varchar(100) not null,
col2 varchar(100) not null,
col3 varchar(100) null,
col4 int8 null,
col5 int8 null,
constraint test_aaaaa_pk primary key (col1)
) partition by range(col1);
create table pt_test_aaaaa partition of test_aaaaa
for values from ('20250609180000') to ('20250609190000');
select from test_aaaaa;
728x90
반응형
'DB > PostgreSQL' 카테고리의 다른 글
PostgreSQL에서 DBeaver를 이용해서 개발기에서 운영기로 데이터 이관하기. (1) | 2025.07.10 |
---|---|
PostgreSQL 에서 hourly 파티션 생성및 삭제 함수 (0) | 2025.06.10 |
샘플데이터 user1 (0) | 2025.06.09 |
Postgres를 더 생산적이고 안전하게 사용하는 데 도움이 되는 실용적인 패턴들 (0) | 2025.04.02 |
샘플 테이블 생성하기 (0) | 2023.11.08 |
댓글