The Anonymous Monk is right. You can use placeholders only for values, not for names. Use string interpolation here (and only here, NEVER interpolate values into SQL commands).
Of course, you could write a stored procedure which interpolates its argument into a truncate command and executes that command ... ;-)
Alexander
In reply to Re: DBI passing tablename
by afoken
in thread DBI passing tablename
by RobertCraven
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |