본문 바로가기
DB/PostgreSQL

샘플데이터 test_aaaaa...파티션 테스트용

by 골든크랩 2025. 6. 9.
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
반응형

댓글