Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

selecting field size

Status
Not open for further replies.

ChrisQuick

Programmer
Oct 4, 1999
144
0
0
US
I am trying to intergrate an Oracle 8 database with another application. I've written my code to select a record from an Oracle table an populate a dialog box. I need to be able to size the text input boxes for each field based on the field size. I know I can get the field size by describing the table, but my appplication needs to get the field size via a select statement. Can anyone give me a few pointers?
 
Try the all_tab_columns public view:<br>
select c.column_name, c.data_length<br>
from all_tab_columns c<br>
where c.owner = '&table_schema'<br>
and c.table_name = '&tab'<br>
and c.column_name like '&cols';<br>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top