php - prepared Query strings -


this question has answer here:

is there function return prepared query string after processing parameters.

$stmt = $conn->prepare("select full_name user_info user_id = ?"); $stmt->bind_param("s", $user_id); 

can see final query string execute?

if driver capable of using prepared statements, if doesn't require emulation, final query executed is prepared statement.

if want find out executed, need turn on general query log on server. can very, noisy , fill disk on busy server.


Comments

Popular posts from this blog

Ansible warning on jinja2 braces on when -

Parsing a protocol message from Go by Java -

html - How to custom Bootstrap grid height? -