Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

  1. Which version of MySQL introduced the prepared statements?

  2. A.

     MySQL 4.0

    B.

     MySQL 4.1

    C.

     MySQL 4.2

    D.

     MySQL 4.3

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    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.


Be The First To Comment