1.

The function returning reference to hash of row values is ______________(a) fetchrow_array()(b) fetchrow_arrayref()(c) fetch()(d) fetchrow_hashref()The question was asked in an international level competition.I would like to ask this question from Putting Perl DBI to Work in division MySQL Programs Using Perl DBI and PHP of MySQL

Answer»

The correct ANSWER is (d) fetchrow_hashref()

To explain: The function ‘fetchrow_hashref()’ RETURNS reference to hash of ROW values. ‘fetchrow_arrayref()’ returns a reference to an ARRAY of row values. ‘fetch()’ is the same as fetchrow_arrayref().



Discussion

No Comment Found

Related InterviewSolutions