When to use $sth->fetchrow_hashref, $sth->fetchrow_arrayref and $sth->fetchrow_array?

前端 未结 5 1709
梦谈多话
梦谈多话 2021-02-08 04:28

I know that:

  • $sth->fetchrow_hashref returns a hashref of the fetched row from database,
  • $sth->fetchrow_arrayref returns an
5条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-08 05:07

    I don't use any of them since switching all of my DB code to use DBIx::Class.

提交回复
热议问题