Get the Actual SQL of a Prepared Statement with mysqli

De openkb
Aller à : Navigation, rechercher

Sommaire

Questions

Is there any way to get the actual SQL that is the result of preparing a statement when using the mysqli extension?

My problem: I am using prepared statements. In all cases, they SHOULD update a record. I am not catching any errors. However, when I check for affected rows, there are none. So, I want to see the actual SQL that would be executed as a result of the prepare statement.

Is there any way to do this? I ve check the mysqli reference docs, but they don t seem to have anything.

Answers

http://stackoverflow.com/questions/305179/is-there-a-way-to-see-a-prepared-query-as-it-will-be-executed-on-the-database http://stackoverflow.com/questions/305179/is-there-a-way-to-see-a-prepared-query-as-it-will-be-executed-on-the-database

Source

License : cc by-sa 3.0

http://stackoverflow.com/questions/1441934/get-the-actual-sql-of-a-prepared-statement-with-mysqli

Related

Outils personnels
Espaces de noms

Variantes
Actions
Navigation
Outils