PHP 8.5.0 Beta 1 available for testing

Voting

: max(six, five)?
(Example: nine)

The Note You're Voting On

Hayley Watson
12 years ago
It is possible to prepare in advance several statements against a single connection. As long as that connection remains open the statements can be executed and fetched from as often as you like in any order; their "prepare-execute-fetch" steps can be interleaved in whichever way is best.

So if you're likely to be using several statements often (perhaps within a loop of transactions), you may like to consider preparing all the statements you'll be using up front.

<< Back to user notes page

To Top