Let me explain better

I'm moving an entirely column to another in the same table the variables are the columns names:

$new_foo = "new_column";

$old_foo = "old_column";

When i use this statement everything is fine:

$dbh->do(qq{UPDATE foos SET $new_foo = $old_foo});

when i use i use placeholders like:

$dbh->do(qq{UPDATE foos SET $new_foo = ?}, undef, $old_foo);

i filled the "new_column" with zeros.


Best Regards,

--
Gabriel Sales de Oliveira | Async Open Source | [16] 3376 0125


Reply via email to