how to check index on table in mysql code example
Example 1: mysql show indexes on table
SHOW INDEXES FROM table_name;
Example 2: check all indexes on table
SELECT
tablename,
indexname,
indexdef
FROM
pg_indexes
WHERE
schemaname = 'yourschema' and tablename='yourtable'
ORDER BY
tablename,
indexname;
(POSTRGRESQL)