Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

identifying auto-increment columns

843853Aug 13 2001 — edited Aug 21 2001
Hi,

I am developing a database management package for mysql. I want to be able to provide a sql dump facility, which will produce the sql code for creating a table and populating it.

I do not seem to be able to find a function for identifying if a field is auto-incrementing?

The only thing that I could find it the DatabaseMetaData.getTypeInfo() will let you know if a field can used for an auto-increment value, not if it is actually auto-incrementing.

Please help!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 18 2001
Added on Aug 13 2001
1 comment
423 views