[Qt-interest] How to fetch primary key of database table?

Robert Hairgrove evorgriahr at hispeed.ch
Sat Jan 31 17:54:02 CET 2009


Unlike ODBC, there don't seem to be any built-in functions in the 
QSql<...> objects for retrieving the names and columns of primary key 
constraints in database tables.

If there are, it would be nice to know how to do this in a 
DBMS-independent manner. Thanks!



More information about the Qt-interest-old mailing list