Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: What are placeholders in DBI, and why would I want to use them?

by DrHyde (Prior)
on Jun 19, 2003 at 13:30 UTC ( #267178=note: print w/replies, xml ) Need Help??


in reply to What are placeholders in DBI, and why would I want to use them?

Be aware that there are some places where you can't use placeholders, even if your DBD supports them. The two which I hit most often are that you can't use a placeholder for a table name; and that you can't use placeholders for variable-length WHERE IN('foo', 'bar', 'baz') constructs. Another I have come across less often is the multiple-record INSERT variation.

This is because all of those alter the structure of the query, as opposed to just plugging different constant values into the same query.

  • Comment on Re: What are placeholders in DBI, and why would I want to use them?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://267178]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2021-04-13 10:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?