 0 0 0000 0 c0 0 0 0000 0 ct 0 0 00000000 00 SELECT si.NAME,i.POS,i.NAME FROM INFORMATION_SCHEMA.INNODB_FIELDS i INNER JOIN sys_indexes si ON i.INDEX_ID=si.INDEX_ID ORDER BY si.NAME, i.POS; NAME POS NAME c0 0 C PRIMARY 0 c0 SELECT i.FOR_COL_NAME, i.REF_COL_NAME, i.POS FROM INFORMATION_SCHEMA.INNODB_FOREIGN_COLS i INNER JOIN sys_foreign sf ON i.ID = sf.ID; FOR_COL_NAME REF_COL_NAME POS c0 C