create table tb_pstn_info ( PSTN_INFO_ID varchar(10) not null comment '위치 정보 ID' primary key, SGG_CD varchar(5) not null comment '시군구 코드', CRDN_YR char(4) null comment '단속 연도', CRDN_NO varchar(6) null comment '단속 번호', STDG_EMD_CD char(3) not null comment '법정동 읍면동 코드', LDCG_CD char(3) not null comment '지목 코드', PTOUT decimal(22, 2) null comment '지적', OALP decimal(13) null comment '공시지가', LOTNO_WHOL_ADDR varchar(2000) null comment '지번 전체 주소', ROAD_NM_WHOL_ADDR varchar(2000) null comment '도로 명 전체 주소', ZIP varchar(6) null comment '우편번호', LOTNO_ADDR varchar(320) null comment '지번 주소', ROAD_NM_ADDR varchar(320) null comment '도로 명 주소', DTL_ADDR varchar(320) null comment '상세 주소', REF_ADDR varchar(320) null comment '참고 주소', PBADMS_ZONE_CD varchar(10) not null comment '행정 구역 코드', ROAD_NM_CD varchar(12) null comment '도로 명 코드', LOTNO_MNO varchar(4) null comment '지번 본번', LOTNO_SNO varchar(4) null comment '지번 부번', BLDG_MNO varchar(4) null comment '건물 본번', BLDG_SNO varchar(4) null comment '건물 부번', UDGD_YN_CD varchar(1) null comment '지하 여부 코드', MTN_YN_CD varchar(1) null comment '산 여부 코드', RMRK varchar(1000) null comment '비고', REG_DT datetime null comment '등록 일시', RGTR varchar(11) null comment '등록자', MDFCN_DT datetime null comment '수정 일시', MDFR varchar(11) null comment '수정자', DEL_YN char not null comment '삭제 여부', DEL_DT datetime null comment '삭제 일시', DLTR varchar(11) null comment '삭제자' ) comment '위치 정보'; create index idx_pstn_info_crdn_yrno on tb_pstn_info (CRDN_NO, CRDN_YR, SGG_CD);