mysqp select * get index number and key value code example Example: show indexes mysql SHOW INDEX FROM yourtable;