1SELECT COLUMN_NAME
2FROM INFORMATION_SCHEMA.COLUMNS
3WHERE TABLE_SCHEMA = 'Your Database'
4 AND TABLE_NAME = 'Your Table name'
5 AND COLUMN_KEY = 'PRI';
6
7
8SELECT COLUMN_NAME
9FROM INFORMATION_SCHEMA.COLUMNS
10WHERE TABLE_SCHEMA = 'Your Database'
11 AND TABLE_NAME = 'Your Table name'
12 AND COLUMN_KEY = 'UNI';
13