[Tutor] Database Table Primary Keys

Tod Haren ke7fxl at gmail.com
Wed Nov 22 04:43:47 CET 2006


Using a DBAPI 2.0 module such as ADODBAPI, how can a I identify the
primary key fields of a table.  cursor.desctription doesn't hold this
info, unless I'm missing something.  I just don't see it in the
documentation.  Maybe there's an SQL statement I haven't found yet.

Is this even possible?  I'm sure I could get this info from ADOX and
win32com, but that seems a little excessive at this stage.


More information about the Tutor mailing list