Examveda
Examveda

Which version of MySQL introduced the prepared statements?

A. MySQL 4.0

B. MySQL 4.1

C. MySQL 4.2

D. MySQL 4.3

Answer: Option B

Solution(By Examveda Team)

When the query() method is looped repeatedly it comes at a cost of both overhead, because of the need to repeatedly parsing of the almost identical query for validity, and coding convenience, because of the need to repeatedly reconfigure the query using the new values for each iteration. To help resolve the issues incurred by repeatedly executed queries, MySQL introduced prepared statements.

This Question Belongs to PHP >> Databases Handling

Join The Discussion

Related Questions on Databases Handling