Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: How to get back useful error messages?
Hi
About your question on Oracle Group :
Look, there is a special command names "desc", you can see the columns
description for a table, for example : desc customer. Try it !
Hope this help you.
Roy Smith wrote:
> I've got a table with a variety of constraints. I'm building a data-entry
> app, and want to be able to pass back to the user useful diagnostics about
> why an operation failed. The problem is, Oracle doesn't give particularly
> useful error messages. For example, if I deliberately cause an error:
>
> SQL> insert into person (alias) values ('roy.smith');
> insert into person (alias) values ('roy.smith')
> *
> ERROR at line 1:
> ORA-01400: mandatory (NOT NULL) column is missing or NULL during insert
>
> How do I know which of the several NOT NULL columns caused the problem?
>
> --
> Roy Smith <roy_at_popmail.med.nyu.edu>
> New York University School of Medicine
>
--
"Smell the Flower While you can"