I don’t think there is any direct way of doing this. But a way out is, fetch the complete structure of the table and parse it field by filed, for which all fields you get the Primary Key constrain, display it.
I don't know if this will help in this case but what I do is drop back to SQL. I believe DESCRIBE tablename; will at least give you a bunch of information regarding the structure for most SQL based DBs
__________________ Hawk Enterprises -- Home to PHP games, open-source code, tutorials and free downloads