idx_name function

Get the name and the position of the index column