# Array find\_index

**URL:** <https://www.ruby-forum.com/t/array-find-index/253666>\
**Category:** Uncategorized\
**Created:** [January 27, 2020, 8:59pm UTC](https://www.ruby-forum.com/t/array-find-index/253666 "2020-01-27T20:59:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ceitsol](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/8491ac/32.png) [@ceitsol](https://www.ruby-forum.com/u/ceitsol)\
**Post date:** [January 27, 2020, 8:59pm UTC](https://www.ruby-forum.com/t/array-find-index/253666/1 "2020-01-27T20:59:51Z")

</div>

select code,name,gender from employee  
the result of above query is obtained in an array  
ar\_employee=con.exec "select code,name,gender from employee  
I want to find a specific code in the array by using array.find\_index but I am confused how to use it as the array contains fields (code,name,gender)
