| 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
|
 |
 |
|
|
subject: Need to get table meta data
|
|
|