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!