Skip to content
Advertisement

Tag: perl

How can I print the SQL query executed after Perl’s DBI fills in the placeholders?

I’m using Perl’s DBI module. I prepare a statement using placeholders, then execute the query. Is it possible to print out the final query that was executed without manually escaping the parameters and dropping them into the placeholders? Thanks Answer See Tracing in DBI. The following works using DBD::SQLite but produces a lot of output: Output: <- prepare(‘SELECT … FROM

Advertisement