1.

What is the variable that is a handle to a database object?(a) $dbh(b) $sth(c) $fh(d) $hI got this question during an internship interview.The query is from General Preventative Maintenance topic in section Database Maintenance, Backups and Replication of MySQL

Answer»

The correct OPTION is (a) $dbh

To explain: The variable named ‘$dbh’ is a handle to an open FILE. ‘$h’ is a GENERIC handle and the meaning depends on CONTEXT. ‘$dbh’ is a handle to a database object. ‘$sth’ is a handle to a query object.



Discussion

No Comment Found

Related InterviewSolutions