1.

The function returning an array of row values is ______________(a) fetchrow_array()(b) fetchrow_arrayref()(c) fetch()(d) fetchrow_hashref()This question was addressed to me by my college director while I was bunking the class.Question is taken from Putting Perl DBI to Work topic in section MySQL Programs Using Perl DBI and PHP of MySQL

Answer»

The correct OPTION is (a) fetchrow_array()

To explain I would say: The function ‘fetchrow_array()’ RETURNS an ARRAY 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