Is this the best way to - Get a List of all Primary Keys in a Database - or is there something better?
SELECT KCU.TABLE_NAME AS Table_Name, KCU.CONSTRAINT_NAME A
If you are doing this from java you can also use the getPrimaryKeys method in the databasemetadata object. Perhaps other languages have similar ways to do it.