CREATE TABLE HIPLUS.CREDIT1 (
ID NUMBER(11) NOT NULL,
MCODE NVARCHAR2(5) DEFAULT '' NOT NULL,
TERM_ID CHAR(10) DEFAULT '' NOT NULL,
BUSINESS_NO CHAR(10) DEFAULT '' NOT NULL,
KEYIN CHAR(1) DEFAULT '' NOT NULL,
AUTH_TYPE CHAR(1) DEFAULT 'C' NOT NULL,
AUTH_GUBUN CHAR(1) DEFAULT '' NOT NULL,
CARD_NO VARCHAR2(19) DEFAULT '' NOT NULL,
EXPIRE_DATE CHAR(4) DEFAULT '' NOT NULL,
HALBU CHAR(2) DEFAULT '' NOT NULL,
AMOUNT NUMBER(11) DEFAULT 0 NOT NULL,
CURRENCY CHAR(4) DEFAULT '' NOT NULL,
SVRCHARGE CHAR(10) DEFAULT '0000000000' NOT NULL,
APPROVAL_NO VARCHAR2(10) DEFAULT '' NOT NULL,
AUTH_DATE CHAR(8) DEFAULT '' NOT NULL,
AUTH_TIME CHAR(6) DEFAULT '' NOT NULL,
CANCEL_DATE CHAR(8) DEFAULT '' NOT NULL,
CANCEL_TIME CHAR(6) DEFAULT '' NOT NULL,
TRADE_DATE CHAR(8) DEFAULT '' NOT NULL,
TRADE_TIME CHAR(6) DEFAULT '' NOT NULL,
ISSUE_CODE CHAR(2) DEFAULT '' NOT NULL,
ACQUIRE_CODE CHAR(2) DEFAULT '' NOT NULL,
MERCHANT_NO CHAR(15) DEFAULT '' NOT NULL,
ACCOUNT_DATE CHAR(8) DEFAULT '' NOT NULL,
INSERT_DATE CHAR(8) DEFAULT '' NOT NULL,
WEB2VAN_DATE CHAR(8) DEFAULT '' NOT NULL,
VAN2CARD_DATE CHAR(8) DEFAULT '' NOT NULL,
CARD2VAN_DATE CHAR(8) DEFAULT '' NOT NULL,
VAN2WEB_DATE CHAR(8) DEFAULT '' NOT NULL,
PAYMENT_PLAN CHAR(8) DEFAULT '' NOT NULL,
INCOME_DATE CHAR(8) DEFAULT '' NOT NULL,
RET_CODE_CARD CHAR(8) DEFAULT '' NOT NULL,
RET_CODE_VAN CHAR(8) DEFAULT '' NOT NULL,
REQUEST_OK CHAR(1) DEFAULT 'N' NOT NULL,
CHECK_TRANS CHAR(1) DEFAULT 'N' NOT NULL,
REQ_OUT CHAR(1) DEFAULT 'N' NOT NULL,
REQ_FNO CHAR(2) DEFAULT '' NOT NULL,
REQ_MARKING VARCHAR2(18) DEFAULT '' NOT NULL,
HISTORY_ID NUMBER(11) DEFAULT 0 NOT NULL,
HISTORY_FAMILY CHAR(1) DEFAULT 'P' NOT NULL,
RETRY_REQ_NO CHAR(2) DEFAULT '00' NOT NULL,
HOLD_TYPE CHAR(1) DEFAULT '' NOT NULL,
POS_MATCH VARCHAR2(8) DEFAULT 'DIFF' NOT NULL,
DAY_CANCEL CHAR(1) DEFAULT 'N' NOT NULL,
IS_CANCEL CHAR(1) DEFAULT 'N' NOT NULL,
IS_COMP CHAR(1) DEFAULT 'N' NOT NULL,
IS_TRADE CHAR(1) DEFAULT 'N' NOT NULL,
IS_MEDIA CHAR(1) DEFAULT 'N' NOT NULL,
IS_EDIT CHAR(1) DEFAULT 'N' NOT NULL,
UPDATE_COUNT CHAR(2) DEFAULT '00' NOT NULL,
TRADE_DELAY CHAR(1) DEFAULT 'N' NOT NULL,
NOW_STATE VARCHAR2(15) DEFAULT 'INSERT' NOT NULL,
REMARK VARCHAR2(30) DEFAULT '' NOT NULL,
MEDI_GUBUN CHAR(2) DEFAULT '' NOT NULL,
MEDI_NUM CHAR(10) DEFAULT '' NOT NULL,
MEDI_PATIENT VARCHAR2(40) DEFAULT '' NOT NULL,
MEDI_SUBJECT VARCHAR2(10) DEFAULT '' NOT NULL,
MEDI_RECEIPT CHAR(16) DEFAULT '' NOT NULL,
MEDI_MSKIND CHAR(2) DEFAULT '' NOT NULL,
MSG1 CHAR(16) DEFAULT '' NOT NULL,
MSG2 CHAR(16) DEFAULT '' NOT NULL,
MEDI_MAN CHAR(10) DEFAULT '' NOT NULL,
NAWON_DATE CHAR(8) DEFAULT '' NOT NULL,
IS_SIGN CHAR(2) DEFAULT '00' NOT NULL,
VAN_NAME VARCHAR2(10) DEFAULT '' NOT NULL,
VAN_CODE CHAR(4) DEFAULT '' NOT NULL,
VAN_TRADE_NO VARCHAR2(16) NULL,
SEQUENCE CHAR(8) DEFAULT '' NOT NULL,
TRACKDATA VARCHAR2(40) DEFAULT '' NOT NULL,
MEDI_TYPE CHAR(1) DEFAULT '' NOT NULL,
MEDI_ZONE CHAR(2) DEFAULT '' NOT NULL,
TRADE_DATETIME DATE DEFAULT to_date('0001-01-01 00:00:00','YYYY-MM-DD HH24:MI:SS') NOT NULL,
ACQUIRE_TYPE VARCHAR2(10) DEFAULT '' NOT NULL,
CARD_GUBUN CHAR(1) DEFAULT '1' NOT NULL,
VCODE CHAR(10) DEFAULT '' NOT NULL,
TERMID_GUBUN CHAR(4) DEFAULT '' NOT NULL,
TERM_CODE CHAR(4) DEFAULT '' NOT NULL,
SVC CHAR(10) DEFAULT '0000000000' NOT NULL,
INPUT_AMT CHAR(10) DEFAULT '' NOT NULL,
UPDATE_STAMP TIMESTAMP(7) DEFAULT CURRENT_TIMESTAMP NOT NULL
)
TABLESPACE USERS
PCTFREE 10
PCTUSED 0
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64 K
NEXT 1024 K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
)
LOGGING
NOCACHE
MONITORING
NOPARALLEL
;
테이블생성 정보입니다.
에러난쿼리는
INSERT INTO CREDIT1
(id,MCODE,term_id,business_no,keyin,auth_gubun,amount)
VALUES
(19746515,'M119','DPT0001','12345678','K','A',1004);
입니다.
분명희 not null이 된부분은 default''값으로 주었는데
왜 ORA-01400: cannot insert NULL into ("HIPLUS"."CREDIT1"."CARD_NO")
이런 에러가 날까요?ㅠㅠ