DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: how to display the table structure?

  1. #1
    Join Date
    Sep 2001
    Location
    Jurong East/Singapore
    Posts
    70
    hi all!

    how we can display the table structure thru java gui?

    means if a perticular user logs in then the list of objects or tables owned by him will be shown in a window,
    if the user clickes any one of that it should display the structure!


    regards!!!

  2. #2
    Join Date
    Apr 2002
    Location
    Chennai
    Posts
    27
    Sekhar,

    You should use the getMetaData method from the Connection object and get the metadata. Once you have this metadata object you can get any information from the database catalog, using the various methods like getTables, getColumns and so on.

    Srinivas. T

  3. #3
    Join Date
    Sep 2001
    Location
    Jurong East/Singapore
    Posts
    70
    Thanks a bunch srinivas!
    it works fine....

    regards!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width