Get description about a DB table

Discussion in 'Java' started by Ferro, Nov 16, 2003.

  1. Ferro

    Ferro Guest

    With my servlet and jdbc I connect to a DB2 database.
    On that AS400 DB, many programs write and read data.
    With my jdbc I'd like reading the description associated
    to a table.
    For example: tblCustomer ---> Table of customer

    Is it possible to read "Table of customer"?
    How?

    Thanks a lot.
    Ferro.
     
    Ferro, Nov 16, 2003
    #1
    1. Advertising

  2. Have a look at

    http://java.sun.com/j2se/1.4.2/docs/api/java/sql/DatabaseMetaData.html

    Especially

    <http://java.sun.com/j2se/1.4.2/docs/api/java/sql/DatabaseMetaData.html#getColumns(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String)>



    Ferro schrieb:
    > With my servlet and jdbc I connect to a DB2 database.
    > On that AS400 DB, many programs write and read data.
    > With my jdbc I'd like reading the description associated
    > to a table.
    > For example: tblCustomer ---> Table of customer
    >
    > Is it possible to read "Table of customer"?
    > How?
    >
    > Thanks a lot.
    > Ferro.
    >
    >
     
    Thomas Kellerer, Nov 16, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. eddie wang
    Replies:
    0
    Views:
    419
    eddie wang
    Jul 24, 2003
  2. eddie wang
    Replies:
    0
    Views:
    389
    eddie wang
    Jul 24, 2003
  3. pete
    Replies:
    1
    Views:
    2,945
    Jon Yates
    Aug 29, 2003
  4. F C
    Replies:
    0
    Views:
    197
  5. fl
    Replies:
    0
    Views:
    249
Loading...

Share This Page