With most drivers, placeholders can't be used for any element of a statement that would prevent the database server from validating the statement and creating a query execution plan for it. For example:
So I don't think what you are trying to do will work. Perhaps just building the string using your array values?"SELECT name, age FROM ?" # wrong (will probably fail)
In reply to Re: mySQL non-string bind variable
by wfsp
in thread mySQL non-string bind variable
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |