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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: DBI passing tablename
by RobertCraven (Sexton) on Jun 11, 2009 at 14:59 UTC |