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 -> Determining the defined maximum length of a VARCHAR field

Determining the defined maximum length of a VARCHAR field

From: Michael Young <michael.young_at_paetec.com>
Date: 12 Mar 2003 07:33:33 -0800
Message-ID: <83f9daa0.0303120733.6ee852a3@posting.google.com>


Is there an easy way to determine the defined length of a VARCHAR/VARCHAR2 field in Oracle SQL? I write a lot of interfaces that import data, and many times I'd like to simply truncate the incoming text data to the length of the existing varchar column in a table. I know I can query 'user_tab_columns', but it seems that there should be a built-in function that takes the table name and the varchar column name and returns the defined maximum length for the column. Received on Wed Mar 12 2003 - 09:33:33 CST

Original text of this message

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