× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Joe,

The following SQL is an example of what can be done on DB2/400 and I
know is compatible with other DB2s.  Of course, you can pretty much use
or not use as much or as little in the way of internal documentation as
you wish.   Don't know what databases your working with but, of course,
Oracle does things differently (what a shock).  

What I've created below is just a test that shows how creative you can
be with names and labels in the DB2 CREATE TABLE statement:
 
CREATE TABLE DODOM1.TEST ( 
        TEST_COL_1 FOR COLUMN TEST1      CHAR(10) CCSID 37 DEFAULT NULL
, 
        TEST_COL_2 FOR COLUMN TEST2      CHAR(10) CCSID 37 DEFAULT NULL
) ; 
  
LABEL ON TABLE DODOM1.TEST 
        IS 'Test table' ; 
  
LABEL ON COLUMN DODOM1.TEST 
( TEST_COL_1 IS 'Test Column 1' , 
        TEST_COL_2 IS 'Test Column 2' ) ; 
  
LABEL ON COLUMN DODOM1.TEST 
( TEST_COL_1 TEXT IS 'Test Column 1' , 
        TEST_COL_2 TEXT IS 'Test Col 2' ) ; 
  

HTH,

Dave Odom
Arizona

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.