database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
PostgreSQL
Firebird
Oracle
ㆍInformix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
Informix Q&A 2121 게시물 읽기
No. 2121
informix 구문 체크요청드립니다.부디~~~
작성자
급한이
작성일
2005-02-01 13:17
조회수
8,030

BEGIN WORK;

INSERT INTO LOG
(TRX_NO, TRADE_YMD, TRADE_TIME, PGM_ID)
VALUES
(:TR_SQNO, :TR_DT, :TR_TM, :PRC_PGMNM);

ON EXCEPTION IN (-268)

INSERT INTO LOG_TMP
(TRX_NO, TRADE_YMD, TRADE_TIME, PGM_ID)
VALUES
(:TR_SQNO, :TR_DT, :TR_TM, :PRC_PGMNM);

END EXCEPTION

COMMIT WORK;

 

위 구문이 error 납니다.

고수님들의 지도바랍니다.

이 글에 대한 댓글이 총 1건 있습니다.

dup err 이네요

-268    Unique constraint constraint-name violated.

During execution of this statement, a duplicate value was introduced
into a column or columns that a unique constraint protects. The row
with the duplicate value was not allowed into the table (not inserted
or not updated). For Informix Dynamic Server, any changes that this
statement made prior to the discovery of the duplicate value have been
rolled back. (The effects of preceding statements in the transaction, if
there were any, remain in effect. They must be explicitly rolled back or
committed.)

This error occurs in a logging database. However, if you are using
repeatable read isolation, error -239 will display instead.

 

지나가는 이님이 2005-02-17 14:46에 작성한 댓글입니다. Edit
[Top]
No.
제목
작성자
작성일
조회
2124인포믹스가 Mysql보다 INSERT 가 느린 이유? [1]
현이
2005-02-02
7516
2123에러에 대한 답변좀..부탁
손님
2005-02-02
7167
2122오라클 테이블인데 인포믹스 테이블로 전환좀 부탁 합니다.무지급함 [1]
손님
2005-02-02
7327
2121informix 구문 체크요청드립니다.부디~~~ [1]
급한이
2005-02-01
8030
2119[질문] SQL 질문입니다. [1]
궁긍한이
2005-01-31
6718
2118Informix 용 구문으로 바굴려는데...안되네여 [1]
궁금이
2005-01-28
7665
2117informix+jsp servlet게시판에 대한 자료좀 올려주세요 정말 급함 [1]
손님
2005-01-28
7895
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2023 DSN, All rights reserved.
작업시간: 0.164초, 이곳 서비스는
	PostgreSQL v16.1로 자료를 관리합니다