ask everyone for advice!
return value after multi-table query
< table > < thead > < tr > < th align= "left" > id < / th > < th align= "right" > name < / th > < th align= "center" > age < / th > < th > xingqu < / th > < / tr > < / thead > < tbody > < tr > < td align= "left" > 1 < / td > < td align= "right" > Zhang San < / td > < td align= "center" > 12 < / td > < td > Sing < / td > < / tr > < tr > < td align= "left" > 1 < / td > < td align= "right" > Zhang San < / td > < td align= "center" > 12 < / td > < td > drink < / td > < / tr > < tr > < td align= "left" > 2 < / td > < td align= "right" > Li Si < / td > < td align= "center" > 22 < / td > < td > Sing < / td > < / tr > < / tbody > < / table >is there a library that automatically returns the queried data to the following data format?
[
[id=>1,name=>"",age=>12,xingqu=>["",""]]
[id=>2,name=>"",age=>12,xingqu=>[""]]
]
is there any similar library file? it"s hard to write this without your own model, not to mention querying 3 tables
.