오라클 에러 ORA-01727 numeric precision specifier is out of range (1 to 38)

Back-End/Problems 2020. 11. 11. 10:20
728x90
반응형


테이블 생성중 에러가 발생함


오류 보고 -

ORA-01727: numeric precision specifier is out of range (1 to 38)

01727. 00000 -  "numeric precision specifier is out of range (1 to 38)"

*Cause:    

*Action:


1
2
3
4
5
6
7
8
9
10
CREATE TABLE MEMBER_BOARD(
bno number(20not null primary key,
recommend varchar(20not null,
user_id varchar(20not null,
reg_date date default sysdate,
viewcnt number(50not null, ▶ viewcnt number(20) not null 로 변경함
title varchar(20not null,
rcnt number(20not null,
content varchar(200not null
);
cs


viewcnt number 데이터타입의 사이즈가 최대 38자리수까지 밖에 사용이 안되서 에러가 발생하였다.


38자릿수 이하로 설정하면 에러가 발생되지 않는다.


(오라클에서는 최대 38자리 이하로밖에 사용이 안되기 때문)

728x90
반응형
: