I think this article is what you are looking for:
http://www.dpriver.com/blog/list-of-...ddl-statement/

It illustrates how to analyze create table statement, extract table name, attribute names, data types, fetch Primary Key, Foreign Key, Unique Columns....