Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> How to 'customize' error message from check constraints

How to 'customize' error message from check constraints

From: <gehart25_at_my-deja.com>
Date: Tue, 06 Feb 2001 23:40:55 GMT
Message-ID: <95q225$45a$1@nnrp1.deja.com>

Hello,

I am wondering if there is a way to change the default error message when a check constraint is violated. For example:

'fsql> insert into test values('0');
ORA-02290: check constraint (GEORGE.SYS_C001235) violated'

How can I change this to:

ORA-02290: The column 'price' must be greater than 0.

This would be very benifical to the clients who insert data so they know what they did wrong.

Thank you,
George Hart
San Diego

Sent via Deja.com
http://www.deja.com/ Received on Tue Feb 06 2001 - 17:40:55 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US