title: How to get column name by index using MySQL?
body: <p>How can I get a column name by its index using sql query in command line?</p>
  
  <p>I expect something like <code>show columns from my_table where col_index = 2;</code> </p>
  
  <p>I found many answers about how to show all columns but there's no answer on how to get exact column name by its position in the table.</p>