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

Home -> Community -> Usenet -> c.d.o.misc -> Diagnostic Query to avoid ORA-01722 Error

Diagnostic Query to avoid ORA-01722 Error

From: Tom Urbanowicz <tsu_at_landacorp.com>
Date: 26 Sep 2002 10:27:20 -0700
Message-ID: <6d63e629.0209260927.7c91d445@posting.google.com>


I have a utility that selects the maximum value from a VARCHAR2 column. Obviously, if there is a non-numeric value in the column I encounter the expected an ORA-01722 error.

Is there a "select count(*)" query I can use to first identify if non-numeric values exist in the column? I could then issue this diagnostic query before issuing my query for the maximum value? If the column has non-numeric values in it, I can skip selecting the maximum value from the column.

Wth thanks Received on Thu Sep 26 2002 - 12:27:20 CDT

Original text of this message

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