in reply to access array of values without a loop

So I can't access the values from the traditional foreach loop since this would result in multiple entries depending on the number of keys. So I would like to get a way where I can access the multiple values without looping.

If the data structure you have isn't working for you, make a better one.

What kind of sql should   {'col1'=>[1], 'col2'=>[1,2],'col3'=>[3,4,5]} result in?