|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
DBI case-insensitive placeholdersby Anonymous Monk |
| on Oct 27, 2003 at 09:27 UTC ( [id://302394]=perlquestion: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: Dear Monks, I am using DBI to communicate with MySQL database, and I am also using placeholders in a function like this: my $selectdata = $dbh->prepare("SELECT * FROM data WHERE content = ?");However, when I execute this statement, it comes up with case-insensitive match (i.e. it selects all rows where content is "Perl", "PERL" and "perl" when I supply "Perl" to the execute() method) Is there an easy way to enable case-sensitive matches? I have read through DBI documentation, but I only seem to find a chapter of how to get information about case-sensitivity of the DBI driver itself and not on statement-to-statement basis. I am sorry if this is a dumb question, please push me into the right direction
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||