1.

The function that returns reference to hash of row values is ____________(a) fetchrow_array()(b) fetchrow_arrayref()(c) fetch()(d) fetchrow_hashref()I got this question by my school teacher while I was bunking the class.I want to ask this question from Database Copies topic in section Nulls and Conditions and Miscellaneous of MySQL

Answer»

The correct answer is (d) fetchrow_hashref()

Best EXPLANATION: 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