Is there way to return a two dimensional array from a SQL query? Like..
"SELECT id, x, y, z FROM test"
..and have it return as id => x, y, z? I could do a loop and create a second array but I imagine that's extra work that I might not have to do. Just not familiar with SQL right now.