in reply to DBI passing tablename

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

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Replies are listed 'Best First'.
Re^2: DBI passing tablename
by RobertCraven (Sexton) on Jun 11, 2009 at 14:59 UTC
    Thanks for your help, viele Gruesse nach Deutschland! ;-)