CIW
1D0-437 · Question #76
Which of the following code segments correctly readies a database query, creating a valid statement handle and a result set? Assume $dbh represents a valid database handle.
Sign in or unlock 1D0-437 to reveal the answer and full explanation for question #76. The question stem and answer options stay visible for context.
Question
Which of the following code segments correctly readies a database query, creating a valid statement handle and a result set? Assume $dbh represents a valid database handle.
Options
- A$sth = $dbh->prep_statement(SELECT * FROM aTable); $sth->execute_statement;
- B$sth = $dbh->prepare(SELECT * FROM aTable);
- C$sth = $dbh->prep_statement(SELECT * FROM aTable); $sth->execute;
- D$sth = $dbh->prepare_statement(SELECT * FROM aTable); $sth->execute_statement;
Unlock 1D0-437 to see the answer
You've previewed enough free 1D0-437 questions. Unlock 1D0-437 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.