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

Home -> Community -> Usenet -> c.d.o.server -> gen. include file for column definitions??

gen. include file for column definitions??

From: Dietmar Leibecke <dleibeck_at_debis.com.--->
Date: 1997/10/07
Message-ID: <343A5758.6445@debis.com.--->#1/1

Hi there,

I'm looking for a way to generate a C include file with the column length definitions of all varchar fields in a database. The result should look like

#define MAX_<TABLENAME>_<COLNAME> <COLUMNLENGTH>+1

where TABLENAME is the name of the table, COLNAME the name of the column and COLUMNLENGTH the length of the varchar field.

Does such a tool already exist or is there a simple SELECT to retrieve the information needed?

Any input welcome and TIA,

-- 
Dietmar Leibecke
----------------
Address is altered to discourage junk mail.
Remove ".---" for the real address.
Received on Tue Oct 07 1997 - 00:00:00 CDT

Original text of this message

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