get the column index number from table