Is it possible to retrieve information like:
- the tables
- the indexes with the columns they index
- the columns in each table along with their types
- constraints like unique keys, foreign keys, not null ..
using sql from all (major) RDBMSs?
I know it is possible for oracle and assume it is possible for most others. Are there any important exceptions to this?
For many databases you can make use of the INFORMATION_SCHEMA tables:
and similar selects for other info such as indexes and relationships.
According to this link: