jQuery in Action, 2nd edition
The moose likes JDBC and the fly likes Need to get table meta data Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Need to get table meta data" Watch "Need to get table meta data" New topic
Author

Need to get table meta data

M Burke
Ranch Hand

Joined: Jun 25, 2004
Posts: 375
I need to get a list of the triggers and constraints on tables. I looked at DatabaseMetaData & ResultSetMetaData but I don't see a method to get this information (Unless I am missing it). Any ideas?
steve souza
Ranch Hand

Joined: Jun 26, 2002
Posts: 852
This might be because triggers and constraints aren't standard across all databases. You may have to write a query that goes against the db's system tables to do this or it could also possibly be part of a vendors jdbc implementation. What db are you using?


http://www.jamonapi.com/ - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
M Burke
Ranch Hand

Joined: Jun 25, 2004
Posts: 375
I am using Oracle 10g. I think you are right. I need to query some kind of system table. Just not sure which ones.
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2343



OCUP UML fundamental
ITIL foundation
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Need to get table meta data
 
Similar Threads
Master Bathroom
How to get PageContext
Signed Applet
About file path
what is Beta Testing?